UNPKG

@dndbuilder.com/react

Version:

Drag and drop builder for React

25 lines (24 loc) 874 B
import { SettingsType } from '../../types'; import { VariantProps } from 'class-variance-authority'; import { FC, HTMLAttributes, ReactNode } from 'react'; declare const controlVariants: (props?: ({ direction?: "row" | "col" | null | undefined; } & import('class-variance-authority/types').ClassProp) | undefined) => string; export type SelectOption = { value: string; content: ReactNode; }; export type SelectControlProps = { options: SelectOption[]; placeholder?: ReactNode; type: SettingsType; fieldName: string; label: ReactNode; responsive?: boolean; mode?: string; defaultValue?: string; onValueChange?: (value: string) => void; } & HTMLAttributes<HTMLDivElement> & VariantProps<typeof controlVariants>; export declare const SelectControl: FC<SelectControlProps>; export {}; //# sourceMappingURL=select.control.d.ts.map