import { cn } from '@/lib/cn' export interface SegOption { value: T label: string title?: string } /** * The segmented pill control: options on a neutral-200 track, the active one * lifted on a neutral-100 pill with a soft shadow. Used for seasons, the theme, * units, and read-only status displays (pass `disabled`). */ export function Seg({ options, value, onChange, disabled, className, optionClassName, label, }: { options: SegOption[] value: T onChange?: (v: T) => void disabled?: boolean className?: string optionClassName?: string /** Accessible group name. */ label?: string }) { return ( {options.map((o) => ( ))} ) }