Components
TopNav
This example is composed with Storybook args. Open the interactive workbench to change its props and inspect the generated API controls.
Import
import { TopNav } from '@simal/ui/nativewindui';Props
| Prop | Values | Default | Description |
|---|---|---|---|
title | — | "Section title" | Centred title. One line; long titles truncate. |
children | — | — | The trailing slot, and the only other prop. There is no leading slot and no back affordance — compose those yourself or reach for LargeTitleHeader. |
Examples
With Action
children fills the trailing slot.
<TopNav
title="Section title"
children={<Icon name="ellipsis" size={22} />}
/>