active
prop is set.
<x-navbar.item href="/" active>Home</x-navbar.item><x-navbar.item href="/" :active="false">Home</x-navbar.item><x-navbar.item href="/" :active="request()->is('/')">Home</x-navbar.item>
o-...
for navbar items. More information
visit
icon
component.
<x-navbar> <x-navbar.item href="#" icon="o-home">Home</x-navbar.item> <x-navbar.item href="#" icon="o-puzzle-piece">Features</x-navbar.item> <x-navbar.item href="#" icon="o-currency-dollar">Pricing</x-navbar.item> <x-navbar.item href="#" icon="o-user">About</x-navbar.item></x-navbar>
badge
prop and change the badge color using
the
badge-color
prop.
<x-navbar> <x-navbar.item href="#">Dashboard</x-navbar.item> <x-navbar.item href="#">Transactions</x-navbar.item> <x-dropdown position="bottom-start"> <x-navbar.item icon-trailing="o-chevron-down">Account</x-navbar.item> <x-navmenu> <x-navmenu.item href="#">Profile</x-navmenu.item> <x-navmenu.item href="#">Settings</x-navmenu.item> <x-navmenu.item href="#">Billing</x-navmenu.item> </x-navmenu> </x-dropdown></x-navbar>
<x-navlist class="w-64"> <x-navlist.item href="#" icon="o-home">Home</x-navlist.item> <x-navlist.item href="#" icon="o-puzzle-piece">Features</x-navlist.item> <x-navlist.item href="#" icon="o-currency-dollar">Pricing</x-navlist.item> <x-navlist.item href="#" icon="o-user">About</x-navlist.item></x-navlist>
<x-navlist class="w-64"> <x-navlist.group heading="Account"> <x-navlist.item href="#">Profile</x-navlist.item> <x-navlist.item href="#">Settings</x-navlist.item> <x-navlist.item href="#">Billing</x-navlist.item> </x-navlist.group></x-navlist>
expandable
prop.
<x-navlist class="w-64"> <x-navlist.item href="#" icon="o-home">Dashboard</x-navlist.item> <x-navlist.item href="#" icon="o-list-bullet">Transactions</x-navlist.item> <x-navlist.group heading="Account" expandable> <x-navlist.item href="#">Profile</x-navlist.item> <x-navlist.item href="#">Settings</x-navlist.item> <x-navlist.item href="#">Billing</x-navlist.item> </x-navlist.group></x-navlist>
expanded
prop:
<x-navlist.group heading="Account" expandable expanded>
badge
prop and change the
badge color using the
badge-color
prop.
<x-navlist class="w-64"> <x-navlist.item href="#" icon="o-home">Home</x-navlist.item> <x-navlist.item href="#" icon="o-envelope" badge="12">Inbox</x-navlist.item> <x-navlist.item href="#" icon="o-user-group">Contacts</x-navlist.item> <x-navlist.item href="#" icon="o-calendar-days" badge="Pro" badge-color="lime">Calendar</x-navlist.item></x-navlist>