Product components

The components and brand blocks of @aisgroup/design, the package every Rosepetal product installs, live and with their code. Every product uses them as they are.

Components

Actions and navigation

  • Breadcrumb

    Where a page sits. Every crumb navigates to its own page.

  • Button

    Primary, secondary, outline, ghost, destructive and link, in every size.

  • Dropdown menu

    Row actions behind the more button, with named items.

  • Navigation menu

    A menu of links, with dropdown groups.

  • Pagination

    Numbered pages under a table.

  • Tabs

    Views of the same thing.

  • Toggle

    One button that stays on or off.

  • Toggle group

    One tool or option out of a few.

Forms and choices

  • Checkbox

    One option on or off, or several options from a list.

  • Combobox

    Choosing from a long list, with search.

  • Field

    Label above the control, description and error under it.

  • Input

    Text, numbers and search, with units as input group addons.

  • Input group

    A field with icons, text or buttons inside.

  • Label

    The name of a field.

  • Radio group

    A choice between a few modes, as choice cards.

  • Select

    Choosing from a short list.

  • Slider

    A value in a range.

  • Switch

    A setting on or off, in a switch row.

  • Textarea

    Longer text.

Data and content

  • Avatar

    The person signed in, as a picture or initials.

  • Badge

    Counts and short neutral labels. Status is an icon and a word, not a badge.

  • Card

    Only for clickable entities, summaries and floating panels.

  • Carousel

    A row of items that moves one at a time.

  • Item

    Clickable entities: datasets, models, images.

  • Kbd

    Keyboard shortcuts.

  • Scroll area

    A region with its own scroll.

  • Separator

    Between rows and in toolbars only.

  • Table

    Rows of facts with sortable headers.

Feedback and progress

  • Alert

    A status message inside a section: icon and text take the tone, the surface stays the card.

  • Empty

    An empty container, with a clear action.

  • Progress

    How far a task has gone.

  • Skeleton

    Content loading, in the shape of the content.

  • Toast

    Short feedback after an action.

  • Spinner

    Something working: in its button, or filling an empty area.

Panels and overlays

  • Alert dialog

    A question that interrupts: it has to be answered to go on.

  • Collapsible

    A section that opens and closes.

  • Dialog

    Header band, body and full-width footer buttons: Cancel first, the action second.

  • Popover

    A panel anchored to its control.

  • Sheet

    A side panel over the page.

  • Tooltip

    The name of an icon-only button.

Page structure

  • Calendar

    One date from a month view, in the locale's language and first weekday.

  • Chart

    Area, bar, line and donut charts on Unovis, in the data colours, with tooltips and a legend.

  • Command

    A searchable list of options or actions, inline or as a palette.

  • Context menu

    An object's actions on right-click, as well as on a visible button.

  • Data table

    A table from columns and data: sorting, search, filters, pages, column visibility and selection.

  • Date picker

    A date or a range in a button with the formatted date, and a calendar in a popover.

  • File upload

    A dashed drop zone with a button, and the list of files with progress and remove.

  • Multi select

    Several options from a list, shown as tags in the field.

  • Number field

    A number with minus and plus buttons, formatted for the locale.

  • Pin input

    A short code, one character per box.

  • Range calendar

    A start and an end date across one or more months.

  • Sidebar

    The side navigation of a page.

  • Status label

    A status as a toned icon and the word, in muted text. Never colour alone, never a badge.

  • Stepper

    The steps of a task in order, with the current one marked.

  • Tags input

    Free values typed as tags.

  • Timeline

    Events in time order, each with its marker, title, details and time.

  • Tree

    Nested items as list rows that open and close, with optional checkboxes.

Blocks

Brand pieces built from the components, with no app logic: the top bar, the login page, the confirm dialog and the log terminal. Each app gives their texts and data.

Data and content

Panels and overlays

  • Confirm dialog

    A question before an action: it runs the action, shows its progress and errors, and offers Retry. Each app gives its texts and the action.

  • Confirm host

    Confirmations asked from code: useConfirm().ask() opens the confirm dialog in the one host App mounts.

Page structure

  • Top bar

    The brand bar: colour, height and logo. Each app gives its links and actions.

  • Login page

    The sign-in page. Each app gives its logo, its texts and its sign-in.

  • Figure cards

    The figures of an overview as cards: label, value and an optional detail line, up to four in a row.

  • Page layout

    A page under the top bar: its width, title and actions, and an optional side menu that stays while the content scrolls.

Type to search the guide.