Sigta UI · Kit

Navbar

Brand header — brand / links / actions

Source
<div class="-m-6 overflow-hidden rounded-panel">
        <sigta:navbar>
            <x-slot:brand>
                <a href="#top" class="no-underline"><sigta:brand size="sm" /></a>
            </x-slot:brand>

            <sigta:navlink href="#work" current>Work</sigta:navlink>
            <sigta:navlink href="#studio">Studio</sigta:navlink>
            <sigta:navlink href="#journal">Journal</sigta:navlink>
            <sigta:navlink href="#contact">Contact</sigta:navlink>

            <x-slot:actions>
                <sigta:button variant="cta" size="sm" href="https://calendly.com/sf-sigta/30min" target="_blank">Book a project</sigta:button>
            </x-slot:actions>
        </sigta:navbar>
        <div class="h-24 bg-surface"></div>
    </div>

CTA via props — target like a button

Source
<div class="-m-6 overflow-hidden rounded-panel">
        <sigta:navbar cta-label="Book a project" cta-href="https://calendly.com/sf-sigta/30min" target="_blank">
            <x-slot:brand>
                <a href="#top" class="no-underline"><sigta:brand size="sm" /></a>
            </x-slot:brand>

            <sigta:navlink href="#work">Work</sigta:navlink>
            <sigta:navlink href="#studio">Studio</sigta:navlink>
        </sigta:navbar>
        <div class="h-24 bg-surface"></div>
    </div>

Navlinks — hover underline, current state

Source
<div class="flex items-center gap-8">
        <sigta:navlink href="#work" current>Current page</sigta:navlink>
        <sigta:navlink href="#studio">Hover me</sigta:navlink>
        <sigta:navlink href="#journal">Another link</sigta:navlink>
    </div>

Mobile

Below md the links collapse behind a hamburger (Alpine x-data toggle, aria-expanded wired). Resize the viewport on the demo above to see it.

Source
<p class="font-body text-graphite text-[0.9rem]">Below <code class="font-mono text-[0.8rem]">md</code> the links collapse behind a hamburger (Alpine <code class="font-mono text-[0.8rem]">x-data</code> toggle, <code class="font-mono text-[0.8rem]">aria-expanded</code> wired). Resize the viewport on the demo above to see it.</p>