Skip to main content

Navigation Menu

Shared, editable XML components from the navigation-menu family.

Usage​

Declare the catalog namespace in your screen and run relo-components build to bundle its dependencies before delivery. Install Components host support before session creation. Use ui:Theme or your compatible theme.

<ui:Theme xmlns:ui="urn:relo:registry:relo">
<ui:NavigationMenu />
</ui:Theme>

Dependencies: theme.

Exports​

ui:NavigationMenu · ui:NavigationMenuClose · ui:NavigationMenuContent · ui:NavigationMenuDescription · ui:NavigationMenuFooter · ui:NavigationMenuGroup · ui:NavigationMenuHeader · ui:NavigationMenuIndicator · ui:NavigationMenuItem · ui:NavigationMenuLabel · ui:NavigationMenuLink · ui:NavigationMenuList · ui:NavigationMenuPositioner · ui:NavigationMenuSeparator · ui:NavigationMenuShortcut · ui:NavigationMenuSub · ui:NavigationMenuSubClose · ui:NavigationMenuSubContent · ui:NavigationMenuSubDescription · ui:NavigationMenuSubFooter · ui:NavigationMenuSubHeader · ui:NavigationMenuSubTitle · ui:NavigationMenuSubTrigger · ui:NavigationMenuTitle · ui:NavigationMenuTrigger

PropDefaultRequired
valuefalseNo
title''No
description''No
side'bottom'No
dismissibletrueNo
anchor'trigger'No
closeOnSelecttrueNo

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

  • on-change — explicitly emitted output; inspect the definition for payload shape.
  • on-selected — explicitly emitted output; inspect the definition for payload shape.
  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenu" props="value=false, title='', description='', side='bottom', dismissible=true, anchor='trigger', closeOnSelect=true">
<Popup mode="anchored" bind-value="props.value" bind-label="props.title" bind-description="props.description" bind-side="props.side" bind-dismissible="props.dismissible" on-change="emit change with event" bind-anchor="props.anchor" class=" enter:opacity-0 exit:opacity-0 enter:scale-95 exit:scale-95 spring-fast">
<SelectionGroup bind-value="null" mode="focus" orientation="vertical" activation="manual" class="rc-surface p-1 gap-0" on-activate="emit selected with event; if props.closeOnSelect then emit change with {value:false} end">
<Slot />
</SelectionGroup>
</Popup>
</Component>

Read NavigationMenu source.

PropDefaultRequired
label''No
variant'default'No
size'default'No
enabledtrueNo

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

Mapped size choices: default, icon, iconLg, iconSm, iconXs, lg, sm, xs.

Mapped variant choices: default, destructive, ghost, link, outline, secondary.

  • on-press — explicitly emitted output; inspect the definition for payload shape.
  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuClose" props="label='', variant='default', size='default', enabled=true">
<Pressable bind-label="props.label" bind-enabled="props.enabled" role="button" bind-class="'transition spring-fast ' + ({default: 'rc-button-default', secondary: 'rc-button-secondary', outline: 'rc-button-outline', ghost: 'rc-button-ghost', destructive: 'rc-button-destructive', link: 'rc-button-link'}[props.variant] + ' ' + {default: 'h-8 px-2.5', xs: 'h-6 px-2', sm: 'h-7 px-2.5', lg: 'h-9 px-2.5', icon: 'w-8 h-8 p-2', iconXs: 'w-6 h-6 p-1', iconSm: 'w-7 h-7 p-1.5', iconLg: 'w-9 h-9 p-2'}[props.size])" on-press="emit press with event">
<Row class="h-full flex-1 items-center justify-center gap-2">
<Slot>
<Text bind-text="props.label" class="font-rc-small font-medium" />
</Slot>
</Row>
</Pressable>
</Component>

Read NavigationMenuClose source.

PropDefaultRequired
—No declared user props—

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuContent">
<Column class="gap-4">
<Slot />
</Column>
</Component>

Read NavigationMenuContent source.

PropDefaultRequired
text''No

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

No content outlets.

Definition and forwarded payloads
<Component name="NavigationMenuDescription" props="text=''">
<Text bind-text="props.text" class="font-rc-small text-rc-muted-foreground" />
</Component>

Read NavigationMenuDescription source.

PropDefaultRequired
—No declared user props—

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuFooter">
<Row class="gap-2 justify-end">
<Slot />
</Row>
</Component>

Read NavigationMenuFooter source.

PropDefaultRequired
—No declared user props—

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuGroup">
<Column class="gap-1">
<Slot />
</Column>
</Component>

Read NavigationMenuGroup source.

PropDefaultRequired
—No declared user props—

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuHeader">
<Column class="gap-1.5">
<Slot />
</Column>
</Component>

Read NavigationMenuHeader source.

PropDefaultRequired
—No declared user props—

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuIndicator">
<View class="bg-rc-primary h-1">
<Slot />
</View>
</Component>

Read NavigationMenuIndicator source.

PropDefaultRequired
label''No
valuenullNo
selectedfalseNo
enabledtrueNo
variant'default'No

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

Mapped variant choices: default, destructive.

  • on-press — explicitly emitted output; inspect the definition for payload shape.
  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuItem" props="label='', value=null, selected=false, enabled=true, variant='default'">
<Pressable bind-label="props.label" bind-itemValue="props.value" bind-selected="props.selected" bind-enabled="props.enabled" role="menuitem" bind-class="'transition spring-fast ' + ('rc-item px-2 py-1.5 ' + {destructive:'text-rc-destructive',default:'text-rc-foreground'}[props.variant])" on-press="emit press with event">
<Row class="h-full flex-1 items-center gap-2">
<Slot>
<Text bind-text="props.label" />
</Slot>
</Row>
</Pressable>
</Component>

Read NavigationMenuItem source.

PropDefaultRequired
text''No

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

No content outlets.

Definition and forwarded payloads
<Component name="NavigationMenuLabel" props="text=''">
<Text bind-text="props.text" class="font-rc-small font-medium" />
</Component>

Read NavigationMenuLabel source.

PropDefaultRequired
label''No
variant'default'No
size'default'No
enabledtrueNo

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

Mapped size choices: default, icon, iconLg, iconSm, iconXs, lg, sm, xs.

Mapped variant choices: default, destructive, ghost, link, outline, secondary.

  • on-press — explicitly emitted output; inspect the definition for payload shape.
  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuLink" props="label='', variant='default', size='default', enabled=true">
<Pressable bind-label="props.label" bind-enabled="props.enabled" role="link" bind-class="'transition spring-fast ' + ({default: 'rc-button-default', secondary: 'rc-button-secondary', outline: 'rc-button-outline', ghost: 'rc-button-ghost', destructive: 'rc-button-destructive', link: 'rc-button-link'}[props.variant] + ' ' + {default: 'h-8 px-2.5', xs: 'h-6 px-2', sm: 'h-7 px-2.5', lg: 'h-9 px-2.5', icon: 'w-8 h-8 p-2', iconXs: 'w-6 h-6 p-1', iconSm: 'w-7 h-7 p-1.5', iconLg: 'w-9 h-9 p-2'}[props.size])" on-press="emit press with event">
<Row class="h-full flex-1 items-center justify-center gap-2">
<Slot>
<Text bind-text="props.label" class="font-rc-small font-medium" />
</Slot>
</Row>
</Pressable>
</Component>

Read NavigationMenuLink source.

PropDefaultRequired
—No declared user props—

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuList">
<Row class="items-center gap-1">
<Slot />
</Row>
</Component>

Read NavigationMenuList source.

PropDefaultRequired
—No declared user props—

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuPositioner">
<Row class="items-center gap-1">
<Slot />
</Row>
</Component>

Read NavigationMenuPositioner source.

PropDefaultRequired
—No declared user props—

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

No content outlets.

Definition and forwarded payloads
<Component name="NavigationMenuSeparator">
<Divider class="bg-rc-border" />
</Component>

Read NavigationMenuSeparator source.

PropDefaultRequired
text''No

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

No content outlets.

Definition and forwarded payloads
<Component name="NavigationMenuShortcut" props="text=''">
<Text bind-text="props.text" class="font-rc-small text-rc-muted-foreground" />
</Component>

Read NavigationMenuShortcut source.

PropDefaultRequired
valuefalseNo
title''No
description''No
side'bottom'No
dismissibletrueNo
anchor'trigger'No
closeOnSelecttrueNo

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

  • on-change — explicitly emitted output; inspect the definition for payload shape.
  • on-selected — explicitly emitted output; inspect the definition for payload shape.
  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuSub" props="value=false, title='', description='', side='bottom', dismissible=true, anchor='trigger', closeOnSelect=true">
<Popup mode="anchored" bind-value="props.value" bind-label="props.title" bind-description="props.description" bind-side="props.side" bind-dismissible="props.dismissible" on-change="emit change with event" bind-anchor="props.anchor" class=" enter:opacity-0 exit:opacity-0 enter:scale-95 exit:scale-95 spring-fast">
<SelectionGroup bind-value="null" mode="focus" orientation="vertical" activation="manual" class="rc-surface p-1 gap-0" on-activate="emit selected with event; if props.closeOnSelect then emit change with {value:false} end">
<Slot />
</SelectionGroup>
</Popup>
</Component>

Read NavigationMenuSub source.

PropDefaultRequired
label''No
variant'default'No
size'default'No
enabledtrueNo

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

Mapped size choices: default, icon, iconLg, iconSm, iconXs, lg, sm, xs.

Mapped variant choices: default, destructive, ghost, link, outline, secondary.

  • on-press — explicitly emitted output; inspect the definition for payload shape.
  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuSubClose" props="label='', variant='default', size='default', enabled=true">
<Pressable bind-label="props.label" bind-enabled="props.enabled" role="button" bind-class="'transition spring-fast ' + ({default: 'rc-button-default', secondary: 'rc-button-secondary', outline: 'rc-button-outline', ghost: 'rc-button-ghost', destructive: 'rc-button-destructive', link: 'rc-button-link'}[props.variant] + ' ' + {default: 'h-8 px-2.5', xs: 'h-6 px-2', sm: 'h-7 px-2.5', lg: 'h-9 px-2.5', icon: 'w-8 h-8 p-2', iconXs: 'w-6 h-6 p-1', iconSm: 'w-7 h-7 p-1.5', iconLg: 'w-9 h-9 p-2'}[props.size])" on-press="emit press with event">
<Row class="h-full flex-1 items-center justify-center gap-2">
<Slot>
<Text bind-text="props.label" class="font-rc-small font-medium" />
</Slot>
</Row>
</Pressable>
</Component>

Read NavigationMenuSubClose source.

PropDefaultRequired
—No declared user props—

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuSubContent">
<Column class="gap-4">
<Slot />
</Column>
</Component>

Read NavigationMenuSubContent source.

PropDefaultRequired
text''No

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

No content outlets.

Definition and forwarded payloads
<Component name="NavigationMenuSubDescription" props="text=''">
<Text bind-text="props.text" class="font-rc-small text-rc-muted-foreground" />
</Component>

Read NavigationMenuSubDescription source.

PropDefaultRequired
—No declared user props—

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuSubFooter">
<Row class="gap-2 justify-end">
<Slot />
</Row>
</Component>

Read NavigationMenuSubFooter source.

PropDefaultRequired
—No declared user props—

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuSubHeader">
<Column class="gap-1.5">
<Slot />
</Column>
</Component>

Read NavigationMenuSubHeader source.

PropDefaultRequired
text''No

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

No content outlets.

Definition and forwarded payloads
<Component name="NavigationMenuSubTitle" props="text=''">
<Text bind-text="props.text" class="font-rc-body font-medium" />
</Component>

Read NavigationMenuSubTitle source.

PropDefaultRequired
label''No
variant'default'No
size'default'No
enabledtrueNo

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

Mapped size choices: default, icon, iconLg, iconSm, iconXs, lg, sm, xs.

Mapped variant choices: default, destructive, ghost, link, outline, secondary.

  • on-press — explicitly emitted output; inspect the definition for payload shape.
  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuSubTrigger" props="label='', variant='default', size='default', enabled=true">
<Pressable bind-label="props.label" bind-enabled="props.enabled" role="button" bind-class="'transition spring-fast ' + ({default: 'rc-button-default', secondary: 'rc-button-secondary', outline: 'rc-button-outline', ghost: 'rc-button-ghost', destructive: 'rc-button-destructive', link: 'rc-button-link'}[props.variant] + ' ' + {default: 'h-8 px-2.5', xs: 'h-6 px-2', sm: 'h-7 px-2.5', lg: 'h-9 px-2.5', icon: 'w-8 h-8 p-2', iconXs: 'w-6 h-6 p-1', iconSm: 'w-7 h-7 p-1.5', iconLg: 'w-9 h-9 p-2'}[props.size])" on-press="emit press with event">
<Row class="h-full flex-1 items-center justify-center gap-2">
<Slot>
<Text bind-text="props.label" class="font-rc-small font-medium" />
</Slot>
</Row>
</Pressable>
</Component>

Read NavigationMenuSubTrigger source.

PropDefaultRequired
text''No

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

No directly emitted output events.

No content outlets.

Definition and forwarded payloads
<Component name="NavigationMenuTitle" props="text=''">
<Text bind-text="props.text" class="font-rc-body font-medium" />
</Component>

Read NavigationMenuTitle source.

PropDefaultRequired
label''No
variant'default'No
size'default'No
enabledtrueNo

Template signatures declare names and defaults, not static types. Values must satisfy the underlying primitive or service. Defaults preserve the exact source expression; the definition below shows how inputs are used. Use literal strings or bind-* for evaluated values. Unknown inputs and missing required props fail validation.

Mapped size choices: default, icon, iconLg, iconSm, iconXs, lg, sm, xs.

Mapped variant choices: default, destructive, ghost, link, outline, secondary.

  • on-press — explicitly emitted output; inspect the definition for payload shape.
  • default — caller children.
Definition and forwarded payloads
<Component name="NavigationMenuTrigger" props="label='', variant='default', size='default', enabled=true">
<Pressable bind-label="props.label" bind-enabled="props.enabled" role="button" bind-class="'transition spring-fast ' + ({default: 'rc-button-default', secondary: 'rc-button-secondary', outline: 'rc-button-outline', ghost: 'rc-button-ghost', destructive: 'rc-button-destructive', link: 'rc-button-link'}[props.variant] + ' ' + {default: 'h-8 px-2.5', xs: 'h-6 px-2', sm: 'h-7 px-2.5', lg: 'h-9 px-2.5', icon: 'w-8 h-8 p-2', iconXs: 'w-6 h-6 p-1', iconSm: 'w-7 h-7 p-1.5', iconLg: 'w-9 h-9 p-2'}[props.size])" on-press="emit press with event">
<Row class="h-full flex-1 items-center justify-center gap-2">
<Slot>
<Text bind-text="props.label" class="font-rc-small font-medium" />
</Slot>
</Row>
</Pressable>
</Component>

Read NavigationMenuTrigger source.

Composition and accessibility​

Use explicit value/change ownership; events do not bubble automatically. A component forwards only outputs declared by its own emits. Slots retain caller scope. Supply meaningful labels for interactive controls, preserve focus and touch targets, and test reduced motion on each platform.

Component customization · Definitions and slots · Components index