UNPKG

form-builder-mui

Version:

Form builder and viewer for users to be able to build forms, save them as JSON, and serve them to users all through the UI. Built with React and MaterialUI components.

20 lines (19 loc) 521 B
import { FC } from "react"; import { Element } from "./Components"; export interface Option { value: string; label: string; } export interface SelectInputProps extends Element { prompt: string; additional?: string; label?: string; required?: boolean; value: string; variant?: "standard" | "filled" | "outlined"; options: Option[]; onChange: (id: number, value: string) => void; disabled?: boolean; } declare const SelectInput: FC<SelectInputProps>; export default SelectInput;