'use client'; /** * Claymorphism segmented control — a discrete picker between 2–4 modes * (e.g. rectangular/circular tree layout). Low-stakes, tactile. */ interface ClaySegmentedProps { options: { value: T; label: string }[]; value: T; onChange: (value: T) => void; disabled?: boolean; className?: string; size?: 'sm' | 'md'; } export function ClaySegmented({ options, value, onChange, disabled, className = '', size = 'md', }: ClaySegmentedProps) { return (
{options.map((opt) => { const active = opt.value === value; return ( ); })}
); }