import type React from "react"; export interface SegmentedControlOption { /** The value of the option */ value: string; /** The label of the option */ label?: string | React.ReactNode; /** The icon of the option */ startIcon?: React.ReactNode | string; /** The icon of the option */ endIcon?: React.ReactNode | string; /** Attribute to disable the option */ isDisabled?: boolean; } export type SegmentedControlProps = { /** (try not to) pass addition classes here */ className?: string; /** The options of the SegmentedControl */ options: SegmentedControlOption[]; /** The value of the SegmentedControl */ value?: string; /** The defaultValue of the SegmentedControl */ defaultValue?: string; /** The onChange of the SegmentedControl */ onChange?: (value: string, isUpdatedViaKeyboard?: boolean) => void; /** Whether the control should consume full width of container or not */ isFullWidth?: boolean; } & Omit, "onChange">;