Skip to contentGet startedTokensComponents@hackclub/theme@hackclub/tokens@hackclub/css-base@hackclub/components@hackclub/meta GitHub
<hc-nav>
  <a href="#" aria-current="page">Clubs</a>
  <a href="#">Hackathons</a>
  <hc-nav-menu label="About">
    <a href="#">Philosophy</a>
    <a href="#">Our team</a>
    <a href="#">Jobs</a>
  </hc-nav-menu>
  <hc-button slot="cta" size="sm" variant="primary">Join community</hc-button>
</hc-nav>

API

Attributes

NameTypeDefaultDescription
logo-src, logo-alt, logo-hrefstringHack Club flag, "/"The logo image and link
labelstring"Main"Accessible name of the <nav>
stickybooleanStick to the top with a frosted background once scrolled
invertbooleanLight text until scrolled, for dark heroes
openbooleanMobile menu state
hc-nav-menu labelstringDropdown trigger text
hc-nav-menu align"start" | "end""start"Align the panel to the trigger's start or end

Slots

NameDescription
(default)Links and <hc-nav-menu> elements
logoReplace the logo
ctaCall to action
endExtra controls, e.g. <hc-theme-toggle>

Events

NameDescription
hc-toggleThe mobile menu opened or closed

CSS parts

NameDescription
bar
logo
menu
toggleHamburger button
Next: Footer

The design system behind hackclub.com.
Made with <3 by Lamparter.

Get startedTokensComponents@hackclub/theme@hackclub/tokens@hackclub/css-base@hackclub/components@hackclub/metaWebsiteBrand guideIconshackclub/site