Skip to content

Navigation Menu

SNavigationMenu is horizontal site navigation with dropdown panels of links. It is built on Reka UI (the navigation role, keyboard support, an animated viewport and indicator). Items are set with the items prop: a direct link (href) or an expandable panel (links with a title and description). The chevron is an SIcon.

Basic usage

API

Props

NameTypeDefaultDescription
items{ label: string; href?: string; links?: { label: string; href: string; description?: string | undefined }[] }[]undefinedNavigation items: a direct link (href) or an expandable panel (links).
aria-labelstringundefinedAccessible name of the navigation (aria-label).
squarebooleanundefinedSquare corners: removes the rounding of the dropdown panel.
flatbooleanundefinedRemoves the shadow. Overridden by the elevation prop when it is set.
elevation0 | 1 | 2 | 3 | 4 | 5undefinedShadow level 0–5 (scale); 0 means no shadow. Overrides flat.