页面 · Laravilt
Styling
Customize action colors, icons, variants, sizes, and tooltips.
Label and color
php
Icons
Icons use Lucide names in PascalCase:
php
Variants
php
Size, tooltip, and disabled
php
disabled() takes a boolean. To hide an action based on the record, use visible() / hidden().
Extra attributes
php
API reference
| Method | Description |
|---|---|
label() | Button text |
color() | Button color |
icon($icon, $position = null), iconPosition() | Icon and position |
button(), iconButton(), link() | Variant |
outlined() | Outlined style |
size() | Button size |
tooltip() | Hover text |
disabled(bool) | Disable the button |
extraAttributes() | Extra HTML attributes |