fix error line
This commit is contained in:
@@ -9,6 +9,7 @@ import { Switch } from '@/components/ui/switch';
|
||||
* always used with, and makes the whole row a label so the hit target is the
|
||||
* full width rather than the 36px control.
|
||||
*/
|
||||
/** @param {any} props */
|
||||
export function Toggle({
|
||||
checked,
|
||||
onCheckedChange,
|
||||
@@ -97,8 +98,15 @@ const SEGMENT_VARIANTS = {
|
||||
},
|
||||
};
|
||||
|
||||
/** @param {any} props */
|
||||
export function SegmentedToggle({
|
||||
options = [], value, onChange, size = 'default', variant = 'brand', className, ariaLabel,
|
||||
options = [],
|
||||
value = null,
|
||||
onChange = null,
|
||||
size = 'default',
|
||||
variant = 'brand',
|
||||
className = '',
|
||||
ariaLabel = '',
|
||||
}) {
|
||||
const normalized = options.map((o) => (typeof o === 'string' ? { value: o, label: o } : o));
|
||||
const tone = SEGMENT_VARIANTS[variant] || SEGMENT_VARIANTS.brand;
|
||||
|
||||
Reference in New Issue
Block a user