How to use
A simple button component, but it can do a lot!
Btn::make() ->label('Edit') ->flow($resource, 'edit') ->size(BtnSize::Small),
Available methods
label(?string $label): static
Set the button's label.
Btn::make() ->label('Edit');
title(?string $title): static
Set the button's title (tooltip text on hover). Very useful when your button is icon-only.
Btn::make() ->icon('trash') ->title('Delete this article');
size(BtnSize $size): static
Set the button's size. Accepts one of the Hiker\Components\Btn\Modifiers\BtnSize
enum values.
/** * Available sizes * BtnSize::Large * BtnSize::Regular * BtnSize::Small */ Btn::make() ->size(BtnSize::Large);
Inherited methods
The Media component extends the base component and inherits all of its methods.
It also inherits the methods from the following traits: