How to use
A component to display text. It implements the MakesRequests
trait, so it can be made clickable if needed.
Text::make('[email protected]') ->icon('mail') ->flow($user, 'contact')
Available methods
__construct(?string $text = null)
Instanciate the component with the given text value.
Text::make('[email protected]')
text(?string $text): static
Set the text.
Text::make() ->text('[email protected]');
bold(): static
Force the text to render in bold style.
Text::make() ->bold();
italic(): static
Force the text to render in italic style.
Text::make() ->italic();
Inherited methods
The Text component extends the base component and inherits all of its methods.
It also inherits the methods from the following traits: