@nish1896/rhf-mui-components
Version:
A suite of 25+ production-ready react-hook-form components built with material-ui. Fully typed, tree-shakable, and optimized for enterprise-grade forms.
13 lines • 434 B
TypeScript
//#region src/types/common.d.ts
type StringOrNumber = string | number;
type KeyValueOption = Record<string, any>;
type StrNumObjOption = StringOrNumber | KeyValueOption;
type StrObjOption = string | KeyValueOption;
type CustomComponentIds = Partial<{
field: string;
label: string;
helperText: string;
error: string;
}>;
//#endregion
export { CustomComponentIds, KeyValueOption, StrNumObjOption, StrObjOption, StringOrNumber };