Pill Navigation
A restrained segmented navigation control with shared pill layout morphing and nested submenu dropdown support.
Installation
Add the component directly to your repository using shadcn CLI:
npx shadcn@latest add Surajmaurya1/easyui/pill-navigation
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| items | PillNavigationItem[] | demo items | Navigation items with optional submenu children |
| defaultValue | string | first item id | Initial selected item id |
| defaultSubValue | string | undefined | Initial selected submenu item id |
| onChange | (id: string, subId?: string) => void | undefined | Selection callback |