Skip to content

Function: RadioListField()

ts
function RadioListField(props: UiRadioListFieldProps): Block;

Defined in: src/renderer/blocks/index.ts:789

Radio button list field.

Parameters

ParameterType
propsUiRadioListFieldProps

Returns

Block

Example

ts
RadioListField({
  name: 'preferredContact',
  label: 'Preferred contact method',
  items: [
    {value: 'email', label: 'Email'},
    {value: 'phone', label: 'Phone'},
    {value: 'mail', label: 'Mail'},
  ],
  defaultValue: 'email',
  required: true,
});

Matterway Assistant SDK Documentation