Stagger
0.12
Bounce
0.2
Speed
Card Height
176px
Max Width
800px

More components in Pro

Galleries, cards and interactive pieces for pages that need more than the basics.

View all 255
25 properties
items{ label: string; description?: string; bgColor?: string; textColor?: string; links: { label: string; href?: string; ariaLabel?: string }[] }[]The cards in the menu. Give a card a bgColor to tint it, and links without an href render as buttons.
logostring | ReactNodeImage URL or element shown in the middle of the bar.
logoAlt'Logo'Accessible label for the logo link.
logoHref'#'Where the logo links to.
cta{ label: string; href?: string; onClick?: (event) => void }Button on the right of the bar. On narrow screens it moves to the bottom of the menu.
theme'dark' | 'light''dark'Color scheme of the bar, cards and button.
surface'glass' | 'solid''glass'Frosted glass that blurs what is behind the bar, or an opaque fill.
openOn'click' | 'hover''click'Opens the menu from the button, or as soon as the pointer moves over the bar.
cardEffect'rise' | 'unfold' | 'fade''rise'How the cards arrive: rising into place, folding down from the bar, or fading in from a soft blur.
stagger0.12How far each card trails the one before it, from 0 to 0.3.
bounce0.2How much the menu overshoots as it opens, from 0 to 1.
speedSpeed of the open and close animation.
cardHeight176Minimum height of the cards in px.
maxWidth800Maximum width of the bar in px.
accentColorColor of the button. Its label picks black or white for contrast.
menuLabelShows Menu and Close next to the menu icon, rolling between them.
Unrolls the bar from its center on mount.
defaultOpenStarts with the menu open.
openControls the menu from outside. Pair it with onOpenChange.
onOpenChange(open: boolean) => voidCalled when the menu opens or closes.
linkComponentElementType'a'Renders the links, so you can pass your router's link. It receives href, className and children.
onLinkClick(link, item, event) => voidCalled when a link is clicked. The menu closes afterwards.
ariaLabel'Main'Accessible name of the nav landmark.
Extra class names for the root.
Inline styles for the root.
items{ label: string; description?: string; bgColor?: string; textColor?: string; links: { label: string; href?: string; ariaLabel?: string }[] }[]

The cards in the menu. Give a card a bgColor to tint it, and links without an href render as buttons.

logostring | ReactNode

Image URL or element shown in the middle of the bar.

logoAltstring

Accessible label for the logo link.

Default'Logo'
logoHrefstring

Where the logo links to.

Default'#'
cta{ label: string; href?: string; onClick?: (event) => void }

Button on the right of the bar. On narrow screens it moves to the bottom of the menu.

theme'dark' | 'light'

Color scheme of the bar, cards and button.

Default'dark'
surface'glass' | 'solid'

Frosted glass that blurs what is behind the bar, or an opaque fill.

Default'glass'
openOn'click' | 'hover'

Opens the menu from the button, or as soon as the pointer moves over the bar.

Default'click'
cardEffect'rise' | 'unfold' | 'fade'

How the cards arrive: rising into place, folding down from the bar, or fading in from a soft blur.

Default'rise'
staggernumber

How far each card trails the one before it, from 0 to 0.3.

Default0.12
bouncenumber

How much the menu overshoots as it opens, from 0 to 1.

Default0.2
speednumber

Speed of the open and close animation.

cardHeightnumber

Minimum height of the cards in px.

Default176
maxWidthnumber

Maximum width of the bar in px.

Default800
accentColorstring

Color of the button. Its label picks black or white for contrast.

menuLabelboolean

Shows Menu and Close next to the menu icon, rolling between them.

introboolean

Unrolls the bar from its center on mount.

defaultOpenboolean

Starts with the menu open.

openboolean

Controls the menu from outside. Pair it with onOpenChange.

onOpenChange(open: boolean) => void

Called when the menu opens or closes.

linkComponentElementType

Renders the links, so you can pass your router's link. It receives href, className and children.

Default'a'
onLinkClick(link, item, event) => void

Called when a link is clicked. The menu closes afterwards.

ariaLabelstring

Accessible name of the nav landmark.

Default'Main'

Extra class names for the root.

Inline styles for the root.

Dependencies

2 required packages

npm install @hugeicons/react @hugeicons/core-free-icons