Pajamas components
A component is a UI element that serves a singular purpose or function. Two or more simple components can combine to form a composite component that still has a single function. For example, an avatar, button, or combobox.
- AccordionAn accordion is used to show and hide content.
- AlertAn alert is a system generated, contextual, and timely message to a user that may or may not result from their action.
- Animated NumberPart of the extended design system layerAnimated numbers provide a signifier that values are being changed.
- Attribute listDisplays attributes for a single entity in a grid layout.
- AvatarAn avatar represents a unique entity, like a person, group, or project.
- Avatar groupAn avatar group displays multiple user avatars in a compact layout.
- BadgeA badge highlights system generated metadata as an attribute of a larger object.
- BannerA banner promotes awareness of a new feature or high-priority research initiative.
- BreadcrumbA breadcrumb is a navigational element to help a user understand the current location in the application as well as content structure and hierarchy.
- Broadcast messagePart of the extended design system layerA broadcast message delivers an instance level message from the admin to all users.
- ButtonA button indicates a distinct action and executes a function. Text, icon, or a combination of the two express the action and are supported by the variant and occasionally a tooltip.
- Button groupA button group visually unites multiple related buttons into a single collection.
- CardA card is a flexible container that groups related content and actions in a consistent visual structure.
- Character countA character count displays the current and maximum number of characters allowed in a text input or textarea.
- CheckboxA checkbox form element represents a boolean option.
- CollapseCollapse is used to keep pages focused on the overview of what the user can do.
- ComboboxA combobox is a panel of options typically opened by a button or text input.
- Dashboard panelPart of the extended design system layerA dashboard panel displays content and data for analysis and decision-making. It's the basic building blocks of a dashboard, but can also be used on its own. In a customizable dashboard, it can be moved and resized by a user to create their preferred layout.
- Date pickerThe date picker allows a user to choose and/or input a date by using a calendar dropdown or by typing the date into a text field.
- DisclosureA disclosure widget includes a button that opens a panel of links or actions.
- DrawerA drawer presents context-specific information and/or actions without leaving the current page.
- Dropdown overview
- FilterFilters allow a user to narrow down content by taking an existing list and removing items based on criteria that matches or doesn’t.
- Form comboboxA form combobox combines a text input with a list of options for autocomplete functionality.
- Form fieldsForm fields provides a way to build forms using configuration.
- Form groupForm group adds structure to forms.
- Form input groupA form input group allows prepending or appending content to text inputs.
- Friendly WrapThe friendly-wrap component lets you wrap text in a predictable way.
- Infinite scrollInfinite scroll helps users parse a large number of items by breaking up lists and distributing the results.
- Intersection ObserverThis intersection observer component is an invisible watcher that emits events when it appears and dissapears from view.
- IntersperseThe intersperse component separates a list of elements by a given character.
- LabelPart of the extended design system layerLabels are editable objects that allow users to manually categorize other objects, like issues, merge requests, and epics. They have a name, description, and a customizable color. They provide a quick way to recognize which categories the labeled object belongs to.
- LinkA link is a navigational element that takes a user to another URL, an element within a page, or a file.
- MenuA menu is a button that opens a panel of related settings, where a user checks one option in each group.
- ModalA modal is used to reveal critical information, show information without losing context, or when the system requires a user response.
- Multi-step form templatePart of the extended design system layerA multi-step form template is used to format a form with multiple steps.
- Nav itemA nav item is an interactive element used to compose navigation links and toggles.
- PaginationPagination breaks up content into multiple pages with controls for navigating those pages.
- Password inputA password input masks its value and provides a button to reveal it.
- PathPart of the extended design system layerPaths are horizontal process flows composed of a series of stages.
- PopoverA popover is used to provide supplemental, useful, unique information about an element, including one or multiple actionable elements. It informs the user of additional information within the context of their original view, but without forcing them to act upon it like a modal.
- Progress barA progress bar indicates a percentage of completion.
- Radio buttonA radio button typically represents a single option in a group of related choices.
- SearchSearch patterns enable users to find certain information by adding criteria that match their query.
- Segmented controlA segmented control allows users to choose one out of a range of available options. It is a button group of equal options where only one can be selected and active. There must always be one option active.
- SelectAn HTML element, typically used in a form.
- Skeleton loaderA skeleton loader is a simplified preview of loading content.
- SocksSocks represent a unique way to warm your feet.
- SortingSorting allows users to quickly re-organize similar content on a long list when the default order may be insufficient for users to scan the data set.
- SpinnerA spinner is an animated element that appears after a user's action to indicate that saving or loading is in progress.
- SprintfSprintf lets you do sprintf-style string interpolation with child components.
- TableTables display tabular data in a basic grid composed of cells, columns, and rows. This format makes it easy for users to scan and compare large amounts of data.
- TabsTabs divide content into meaningful, related sections.
- Text inputA component for the HTML input type="text" element.
- TextareaA component for the HTML textarea element.
- ToastA toast displays a short system message as a result of a user's action.
- ToggleA toggle is a visual switch which acts as a boolean.
- TokenA token represents a keyword used to add or filter objects.
- TooltipTooltips identify elements or provide additional, useful information about the referring elements.
- TreePart of the extended design system layerA tree component structures parent and child nodes into a meaningful hierarchy.
- TruncateThe truncate component lets you truncate long texts with ellipsis.
- Truncate TextThe truncate text component lets you truncate a large text by number of lines.