diff --git a/index.d.ts b/index.d.ts index 9b245e0fa..b39eae908 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1407,12 +1407,40 @@ export type SearchTableHeaderCellProps = PolymorphicBoxProps<'div', SearchTableH export declare const SearchTableHeaderCell: BoxComponent export interface SegmentedControlOwnProps { + /** + * The options (elements) displayed by the segmented control + */ options: Array<{ label: string, value: NonNullable }> + + /** + * The value of the segmented control + */ value?: number | string | boolean + + /** + * The initial value of an uncontrolled segmented control + */ defaultValue?: number | string | boolean + + /** + * Function called when value changes. + */ onChange: (value: NonNullable) => void + + /** + * The name attribute of the segmented control + */ name?: string + + /** + * The height of the segmented control + */ height?: number + + /** + * Whether or not the component is disabled + */ + disabled?: boolean } export type SegmentedControlProps = PolymorphicBoxProps<'div', SegmentedControlOwnProps>