Pill Nav
A compact nav row whose active item is marked by a sliding pill.
Import
tsx
import { PillNav } from "@cronus-ui/ui";
bash
npx cronus-ui add pill-nav
Examples
API Reference
Generated from the component's exported types.
PillNavProps
Extends Omit<HTMLAttributes<HTMLElement>, "onChange">
| Prop | Type | Default | Description |
|---|---|---|---|
ref | Ref<HTMLElement> | — | — |
items* | PillNavItem[] | — | — |
value | string | — | Controlled selected value. |
defaultValue | string | — | Initial selected value when uncontrolled. |
onValueChange | (value: string) => void | — | — |