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.
19 lines (18 loc) • 511 B
TypeScript
import { FC } from "react";
import { Element } from "./Components";
export interface OptionType {
value: string;
label: string;
}
export interface CheckboxesProps extends Element {
prompt: string;
additional?: string;
label?: string;
options?: OptionType[];
value?: Record<string, boolean>;
onChange: (id: number, value: Record<string, boolean>) => void;
disabled?: boolean;
required?: boolean;
}
declare const Checkboxes: FC<CheckboxesProps>;
export default Checkboxes;