Skip to content

Kirby 5.0.4

new Button()

new Button(string $component = 'k-button', array|null $badge = null, string|null $class = null, string|bool|null $current = null, string|null $dialog = null, bool $disabled = false, string|null $drawer = null, bool|null $dropdown = null, string|null $icon = null, string|null $link = null, string|bool $responsive = true, string|null $size = null, string|null $style = null, string|null $target = null, array|string|null $text = null, string|null $theme = null, array|string|null $title = null, string $type = 'button', string|null $variant = null, ...$attrs)

Parameters

Name Type Default
$component string 'k-button'
$badge arrayornull null
$class stringornull null
$current stringorboolornull null
$dialog stringornull null
$disabled bool false
$drawer stringornull null
$dropdown boolornull null
$icon stringornull null
$link stringornull null
$responsive stringorbool true
$size stringornull null
$style stringornull null
$target stringornull null
$text arrayorstringornull null
$theme stringornull null
$title arrayorstringornull null
$type string 'button'
$variant stringornull null
...$attrs mixed no default value

Parent class

Kirby\Panel\Ui\Button