MuiOptionsView#

@palmyralabs/rt-forms-mui · form/MuiOptionsView.tsx

Overview#

Read-only option-label display — counterpart to MuiSelect / MuiRadioGroup. Looks up the current value against the options array and renders the matching label, so a stored code like 'ACTIVE' displays as "Active".

Props — ISelectDefinition & TextViewAttributeDefinition#

Common field props + options: Array<{ value, label }> + view-mode props (prefix, suffix).

Example#

<MuiOptionsView
  attribute="status"
  label="Status"
  options={[
    { value: 'ACTIVE',   label: 'Active' },
    { value: 'ARCHIVED', label: 'Archived' },
  ]}
/>