ChoiceSchemaInputcomponent
ChoiceSchemaInput({ schema, value, ...props }: ChoiceSchemaInputProps): ReactElement| Param | Type | |
|---|---|---|
props | ChoiceSchemaInputProps | Props for ChoiceSchemaInput, the ChoiceSchema input variant. required |
| Return | |
|---|---|
ReactElement | A ChoiceRadioInputs or SelectInput element bound to the schema. |
Show a choice input for a ChoiceSchema — radio inputs for up to 8 options, otherwise a select.
Examples
<ChoiceSchemaInput name="role" schema={ROLE} />