MobileNav

Composable bottom navigation for app-owned mobile destinations.

Preview#

<MobileNavRoot>
  <MobileNavItem selected aria-label="Home">
    <Home />
    <MobileNavLabel>Home</MobileNavLabel>
  </MobileNavItem>
</MobileNavRoot>

API#WIP

...props
useRender.ComponentProps<"nav">
Bottom navigation container. It spans the full width and owns the bottom safe-area spacing.
selected
boolean
Marks the destination as selected. Sets data-selected and aria-pressed when nativeButton is true.
nativeButtondefault: true
boolean
When false, skip native button type/aria-pressed wiring so render can replace the host element.
...props
useRender.ComponentProps<"button">
One app-owned destination. Pass selected and native onClick from the consuming route or local state.
...props
useRender.ComponentProps<"span">
Destination text, rendered below the icon.