UI Component Library
The Admin UI is built on a customized version of the Clarity Design System. This means that if you are writing Angular-based UI extensions, you can use the same components that are used in the rest of the Admin UI. If you are using React, we are gradually exporting the most-used components for use with React.
Buttons
There are three types of button:
- Regular: These are general-purpose buttons available in a number of styles. They are used in the action bar and as confirmation buttons for dialogs.
- Ghost: This style is primarily used to indicate a column in a table which is a link to a detail view.
- Small: This style is used for secondary actions of less prominence than a standard button, or when the button must fit in a small space.
Icons
You can use the built-in Clarity Icons for a consistent look-and-feel with the rest of the Admin UI app.
Form inputs
Form inputs are styled globally, so you don't need to use special components for these. The label & tooltip styling is controlled by the "form field" wrapper component.
The form-grid class is used to lay out the form fields into a 2-column grid on larger screens, and a single column on smaller screens.
If you want to force a particular field to always take up the full width (i.e. to span 2 columns at all screen sizes), you can add the
form-grid-span class to that form field.
Cards
Cards are used as a general-purpose container for page content, as a way to visually group related sets of components.
Layout
The following layout components are available:
- Page block: This is a wrapper which applies consistent margins and max-width to the contents of the page. In general, the contents of a page should always be wrapped in this component except when using the DataTable2 component, which has its own styling for margins and width.
- Action bar: This is a wrapper for the top area of the page, just below the header section. This is where the primary action buttons for the page should be located.
- Page detail layout: For detail views, this wrapper provides a two-column layout with a main content area and a sidebar.



