UNPKG

@acrool/react-table

Version:
23 lines (22 loc) 546 B
/// <reference types="react" /> import { IOption } from './types'; interface IProps { title?: string; name?: string; value?: string | number; options?: IOption[]; disabled?: boolean; onChange?: (value: string) => void; } /** * 下拉選單元件 * * @param style * @param name 控制項名稱 * @param options 下拉選單項目 * @param disabled 是否禁用 * @param value * @param onChange */ declare const Select: ({ name, options, disabled, value, onChange, }: IProps) => JSX.Element; export default Select;