<x-button>Button</x-button>
variant
prop to change the visual style of the button.
<x-button variant="outline">Outline</x-button><x-button variant="primary">Primary</x-button><x-button variant="filled">Filled</x-button><x-button variant="danger">Danger</x-button><x-button variant="ghost">Ghost</x-button><x-button variant="subtle">Subtle</x-button>
<x-button size="base">Base</x-button><x-button size="sm">Small</x-button><x-button size="xs">Extra small</x-button>
o-...
for buttons. More information
visit
icon
component.
<x-button icon="o-users" /><x-button icon="o-users">Users</x-button><x-button icon-trailing="o-users">Users</x-button><x-button variant="subtle" icon="o-users" />
<x-button variant="primary" icon="o-envelope" class="w-full">Send Email</x-button>
<x-button.group> <x-button>Oldest</x-button> <x-button>Newest</x-button> <x-button>Top</x-button></x-button.group>
<x-button.group> <x-button icon="o-bars-3-bottom-left" /> <x-button icon="o-bars-3" /> <x-button icon="o-bars-3-bottom-right" /></x-button.group>
<x-button.group> <x-button>New product</x-button> <x-button icon="o-chevron-down" /></x-button.group>
a
tag as a button by passing the
href
props.
<x-button href="https://google.com" icon-trailing="o-arrow-up-right"> Visit Google</x-button>