Buttons
Button
Lets users take actions and make choices with a single click or tap.primary- Bold color fill for primary actions (use sparingly, one per layout)secondary- Standard actions that accompany primary actionstertiary- Minimal emphasis for subtle actionslink- Low emphasis for supplementary or navigation actions
variant?: 'primary' | 'secondary' | 'tertiary' | 'link'size?: 'default' | 'compact' | 'small'icon?: IconType- Display an iconiconPosition?: 'left' | 'right'- Icon placementisDestructive?: boolean- For irreversible actionsisBusy?: boolean- Shows loading statedisabled?: boolean- Disables interactionhref?: string- Renders as anchor taglabel?: string- Accessibility labelshowTooltip?: boolean- Display tooltip on hover
Status: Stable (global usage). Will be superseded by Button in
@wordpress/ui, but continue using for now.ButtonGroup
Groups related buttons together.Text Inputs
TextControl
Lets users enter and edit single-line text.label?: string- Field labelvalue: string- Current valueonChange: (value: string) => void- Change handlertype?: string- Input type (default: ‘text’)help?: string- Help text below inputhideLabelFromVision?: boolean- Visually hide label__next40pxDefaultSize?: boolean- Use 40px height
TextareaControl
Multi-line text input for longer content.NumberControl
Numeric input with optional step controls.Selection Controls
ToggleControl
Binary on/off switch for boolean values.CheckboxControl
Single checkbox for boolean selection.RadioControl
Mutually exclusive options selection.SelectControl
Dropdown selection from a list of options.ComboboxControl
Searchable dropdown with filtering.RangeControl
Slider input for numeric values within a range.Color Controls
ColorPicker
Full-featured color selection interface.ColorPalette
Predefined color swatches for quick selection.Date & Time
DateTimePicker
Combined date and time selection.DatePicker
Date selection without time.TimePicker
Time selection without date.Validated Form Controls
For forms requiring validation, use the validated form control variants:Advanced Controls
CustomSelectControl
Customizable select with rich content options.UnitControl
Numeric input with unit selection (px, em, rem, etc.).Resources
- Storybook: All Controls
- BaseControl - Base wrapper for custom controls
- FormTokenField - Token/tag input