ChoiceSchemaOptionsinterface

{
	readonly options: PossibleChoiceOptions<O>;
	readonly value?: O | I;
	readonly input?: ChoiceInputType | undefined;
}
PropertyType
.optionsPossibleChoiceOptions<O>
Specify correct options using a dictionary of entries. required readonly
.valueO
I
Default option for the value. readonly
.inputChoiceInputType
Input control hint for downstream UIs. Defaults to "radio" for 8 or fewer options, otherwise "select" readonly

Options for ChoiceSchema.

  • options — the allowed choices, as a { key: title } dictionary or an array of keys.
  • value — default option used when the input is undefined.
  • input — control hint for downstream UIs (radios or a select).