Components
Browse and search the full catalog of UI components in the Automattic Design System, with descriptions, options, and usage guidance for each.
-
CollapsibleCard
A card that can be expanded and collapsed. When collapsed, only the header is visible.
-
ColorIndicator
ColorIndicator is a React component that renders a specific color in a circle. It’s often used to summarize a collection of used colors in a child component.
-
ComboboxControl
ComboboxControl is an enhanced version of a SelectControl with the addition of being able to search for options using a search input.
-
Composite
Renders a widget based on the WAI-ARIA composite role, which provides a single tab stop on the page and arrow key navigation through the focusable descendants.
-
Disabled
Disabled is a component which disables descendant tabbable elements and prevents pointer interaction.
-
DropZone
DropZone is a component creating a drop zone area taking the full size of its parent element. It supports dropping files, HTML content or any other HTML drop event.
-
FormTokenField
A FormTokenField is a field similar to the tags and categories fields in the interim editor chrome, or the “to” field in Mail on OS X. Tokens can be entered by typing them or selecting them from a list of suggested tokens.
-
GradientPicker
GradientPicker is a React component that renders a color gradient picker to define a multi step gradient. There’s either a linear or a radial type available.
-
InputControl
InputControl components let users enter and edit text. This is an experimental component intended to (in time) merge with or replace TextControl.
-
KeyboardShortcuts
KeyboardShortcuts is a component which handles keyboard sequences during the lifetime of the rendering element.
-
MenuItem
MenuItem is a component which renders a button intended to be used in combination with the DropdownMenu component.
-
MenuItemsChoice
MenuItemsChoice functions similarly to a set of MenuItems, but allows the user to select one option from a set of multiple choices.
-
Modal
Modals give users information and choices related to a task they’re trying to accomplish. They can contain critical information, require decisions, or involve multiple tasks.
-
SelectControl
SelectControl allows users to select from a single or multiple option menu. It functions as a wrapper around the browser’s native <select> element.
-
Shortcut
Shortcut component is used to display keyboard shortcuts, and it can be customized with a custom display and aria label if needed.
-
Stack
A flexible layout component using CSS Flexbox for consistent spacing and alignment. Built on design tokens for predictable spacing values.
-
Text
A text component for rendering content with predefined typographic variants. Built on design tokens for consistent typography across the UI.
-
TextareaControl
TextareaControls are TextControls that allow for multiple lines of text, and wrap overflow text onto a new line. They are a fixed height and scroll vertically when the cursor reaches the bottom of the field.
-
TextHighlight
Highlights occurrences of a given string within another string of text. Wraps each match with a <mark> tag which provides browser default styling.
-
TreeGrid
TreeGrid is used to create a tree hierarchy. It is not a visually styled component, but instead helps with adding keyboard navigation and roving tab index behaviors to tree grid structures.
-
VisuallyHidden
Visually hides content while keeping it accessible to screen readers. Useful when providing context that’s only meaningful to assistive technology.