welcome-ui
Version:
Customizable design system with react • styled-components • styled-system and ariakit.
18 lines (17 loc) • 623 B
TypeScript
import { default as React } from 'react';
import { FieldGroupOptions } from '../FieldGroup';
import { CreateWuiProps } from '../System';
export interface PickerOption {
element: React.ComponentType<{
selected: boolean;
}>;
value: string;
}
export interface PickerOptions {
name?: string;
onChange?: React.MouseEventHandler<HTMLLabelElement>;
options?: PickerOption[];
value?: string;
}
export type PickerProps = CreateWuiProps<'fieldset', Omit<FieldGroupOptions, 'children'> & PickerOptions>;
export declare const Picker: import('../System').CreateWuiComponent<"fieldset", PickerProps>;