Skip to content
Premium & Brand

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">

Skip PillNavProps props table
PropTypeDefaultDescription
ref
Ref<HTMLElement>
items*
PillNavItem[]
value
stringControlled selected value.
defaultValue
stringInitial selected value when uncontrolled.
onValueChange
(value: string) => void