mirror of
https://github.com/storytold/placeholder-artcraft.git
synced 2026-10-17 00:13:00 +00:00
0daf83dba9
Need to remove secrets before entire repo can be made public.
16 lines
524 B
TypeScript
16 lines
524 B
TypeScript
export type SelectValue = string | number;
|
|
export type SelectOption = {
|
|
label: string;
|
|
value: SelectValue;
|
|
};
|
|
interface ListDropdownProps {
|
|
options: SelectOption[];
|
|
onChange: (val: SelectValue) => void;
|
|
placeholder?: string;
|
|
value?: SelectValue;
|
|
id?: string;
|
|
className?: string;
|
|
}
|
|
export declare const Select: ({ onChange, options, placeholder, value, id, className, }: ListDropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
export default Select;
|
|
//# sourceMappingURL=select.d.ts.map
|