CodeAI

Dropdown

Reveals options in a collapsible panel. Works as a form select (role=input) or as an action menu (role=action).

⌥-click (Option/Alt) nested elements to edit their props

Appearance

Content

Value

State

Accessibility

Menu items (playground)

Props — Dropdown
View MUI docs
PropTypeDescription
role"input" | "action"input = form select; action = button menu
size"large" | "medium" | "small" | "extraSmall"Control height. Default medium (40).
menuType"default" | "checklist"default = single-select; checklist = multi-select (input-only)
optionsDropdownOption[]Items, separators, and group headers.
labelReactNodeField label above the control.
requiredbooleanInput-role only. Appends * after the Field Wrapper label.
disabledbooleanDisables interaction.
menuPlacement"bottomLeft" | "bottomRight" | "topLeft" | "topRight"Preferred side for the menu panel.
widthstringInput-role only. "hug", "full", or a CSS length.
menuWidth"hug" | "trigger" | number | `${number}%`Menu sizing: content hug, trigger width, px minimum, or exact trigger-relative percentage.
Props — Menu Item
PropTypeDescription
labelstringText shown in the menu row.
valuestringUnique option value.
disabledbooleanDisables this option.
iconNameFaIconNameLeading FA icon. Omit for text-only.