IconMenu

A flexible IconMenu component that provides a list of selectable items. Items can be simple labels or actionable links.

Usage

Basic IconMenu

Render the IconMenu with a list of IconMenuItemProps:

<IconMenu.Root defaultValue="home">
<IconMenu.Item value={'home'} label={<Icon type={'Home'} />} />
<IconMenu.Item value={'about'} label={<Icon type={'Zap'} />} />
</IconMenu.Root>

IconMenu using Items

Use IconMenu with items prop data

<IconMenu.Root
items={[
{ value: 'home', label: <Icon type={'Home'} />, href: '#home' },
{ value: 'about', label: <Icon type={'Zap'} />, tooltipLabel: 'About', href: '#about' },
]}
highContrast
defaultValue="home"
/>

API

Props

IconMenu

PropTypeDefaultRequired
itemsIconMenuItemProps[]-Yes
defaultValuestring-Yes
justify'start' | 'center' | 'end''start'-
MarginPropsToken<MarginProps>--
colorThemeAccentColor--
radiusThemeRadius--
sizeResponsive<Size>'medium'-
highContrastboolean--

IconMenu Item

PropTypeDefaultRequired
labelReactNode-Yes
onClick() => void--
hrefstring--
tooltipLabelstring--
tooltipPlacement'top' | 'bottom' | 'left' | 'right'--
colorThemeAccentColor--
radiusThemeRadius--
sizeResponsive<Size>'medium'-
highContrastboolean--
Dropdown Menu
Previous
Menu
Next