UNPKG

@rjsf/mui

Version:

Material UI 7 theme, fields and widgets for react-jsonschema-form

20 lines (19 loc) 1.1 kB
import { InputLabelProps as MuiInputLabelProps } from '@mui/material/InputLabel'; import { SelectProps as MuiSelectProps } from '@mui/material/Select'; import { FormContextType, GenericObjectType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils'; /** Properties available for the `rjsfSlotProps` target of the SelectWidget. */ export interface SelectWidgetMuiProps extends GenericObjectType { /** RJSF-specific slot props for targeting child elements of the SelectWidget. */ rjsfSlotProps?: { /** Props applied to the `InputLabel` element. */ inputLabel?: MuiInputLabelProps; /** Props applied to the `Select` element. */ select?: MuiSelectProps; }; } /** The `SelectWidget` is a widget for rendering dropdowns. * It is typically used with string properties constrained with enum options. * * @param props - The `WidgetProps` for this component */ export default function SelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;