UNPKG

react-fatless-form

Version:

A lightweight React form package designed for simplicity that simplifies form handling and validation without unnecessary complexity or bloat.

21 lines (20 loc) 650 B
import React from 'react'; export type SelectInputType = { name: string; type: "select"; options: { label: string; value: string | number; }[]; style?: React.CSSProperties; onChange: (value: string | number | (string | number)[]) => void; value: string | number | (string | number)[]; multiple?: boolean; placeholder?: string; className?: string; label?: string; disabled?: boolean; loading?: boolean; error?: string; }; export declare function SelectBox({ options, multiple, onChange, placeholder, className, style, value, label, error, }: SelectInputType): React.JSX.Element;