@ozen-ui/kit
Version:
React component library
14 lines (13 loc) • 560 B
TypeScript
import type { ChangeEvent } from 'react';
import type { IconSize } from '@ozen-ui/icons';
import type { SegmentSelectedVariant, SegmentValueProp } from './index';
export type SegmentContextState = {
name?: string;
iconSize?: IconSize;
selected?: SegmentValueProp;
selectedColor?: SegmentSelectedVariant;
disabled?: boolean;
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
};
export declare const SegmentContext: import("react").Context<SegmentContextState>;
export declare const useSegmentContext: () => SegmentContextState;