Fields for selecting one or multiple values from a set of options.

select

Single or multi-select dropdown.

{
  key: 'country',
  type: 'select',
  value: '',
  label: 'Country',
  required: true,
  options: [
    { value: 'us', label: 'United States' },
    { value: 'uk', label: 'United Kingdom' },
  ],
  placeholder: 'Select country',
}

Core Properties:

  • options: Array of { value: T, label: string } objects (at field level, not in props)

Core Props:

  • placeholder: Placeholder text when no value selected

Adapter Props

PropTypeDescription
appearance'fill' | 'outline'Material form field appearance variant
multiplebooleanAllow multiple selections
hintstringHelper text below the field
panelMaxHeightnumberMax height of dropdown panel in pixels
floatLabel'auto' | 'always' | 'never'Label float behavior
hideRequiredMarkerbooleanHide the required asterisk

Example

Material Material
Loading live example

radio

Single selection from multiple options.

{
  key: 'plan',
  type: 'radio',
  value: '',
  label: 'Subscription Plan',
  required: true,
  options: [
    { value: 'free', label: 'Free' },
    { value: 'pro', label: 'Pro - $10/month' },
    { value: 'enterprise', label: 'Enterprise - $50/month' },
  ],
}

Core Properties:

  • options: Array of { value: string, label: string } objects (at field level, not in props)

Adapter Props

PropTypeDescription
colorThemePaletteMaterial theme color
labelPosition'before' | 'after'Position of label relative to radio button
disableRipplebooleanDisable Material ripple effect
hintstringHelper text below the field

Example

Material Material
Loading live example

checkbox

Boolean toggle control.

{
  key: 'newsletter',
  type: 'checkbox',
  value: false,
  label: 'Subscribe to newsletter',
}

Adapter Props

PropTypeDescription
colorThemePaletteMaterial theme color
labelPosition'before' | 'after'Position of label
disableRipplebooleanDisable Material ripple effect
indeterminatebooleanShow indeterminate state
hintstringHelper text below the field

Example

Material Material
Loading live example

toggle

Boolean switch control. Similar to checkbox but with a switch UI.

{
  key: 'darkMode',
  type: 'toggle',
  label: 'Enable Dark Mode',
  value: false,
}

Adapter Props

PropTypeDescription
colorThemePaletteMaterial theme color
labelPosition'before' | 'after'Position of label
disableRipplebooleanDisable Material ripple effect
hideIconbooleanHide the icon on the thumb
hintstringHelper text below the field

Example

Material Material
Loading live example

multi-checkbox

Multiple selection from a list of checkboxes. Value is an array of selected values.

{
  key: 'interests',
  type: 'multi-checkbox',
  label: 'Interests',
  value: [],
  options: [
    { value: 'tech', label: 'Technology' },
    { value: 'sports', label: 'Sports' },
    { value: 'music', label: 'Music' },
  ],
}

Core Properties:

  • options: Array of { value: T, label: string } objects (at field level, not in props)

Adapter Props

PropTypeDescription
colorThemePaletteMaterial theme color for all checkboxes
labelPosition'before' | 'after'Position of labels
disableRipplebooleanDisable Material ripple effect
hintstringHelper text below the field

Example

Material Material
Loading live example