form-input-fields
Version:
A customizable form field components built with TypeScript
22 lines • 716 B
TypeScript
export interface FormCheckboxFieldProps {
/**
* Unique identifier for the checkbox
*/
id: string;
/**
* Label text displayed next to the checkbox
*/
label: string;
/**
* Whether the checkbox is checked
*/
checked: boolean;
/**
* Callback fired when the state is changed
* @param event The event source of the callback
* @param checked The new checked state
*/
onChange: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
}
export declare const FormCheckboxField: ({ id, label, checked, onChange }: FormCheckboxFieldProps) => import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=FormCheckboxField.d.ts.map