Getting started
Components
Every component of the kit, by what it is for.
Actions
- ButtonThe action of a page or a form: one default button per view, others outlined or quiet.
- CollapsibleA heading that opens and closes the region under it: a payload tree's branch, an advanced section.
- Mode toggleSwitches the front between light and dark and remembers the choice; THEME_BOOT_SCRIPT sets it before paint.
Forms
- CheckboxA yes or no that applies when the form is saved.
- DropzoneTakes files or a whole folder by drop or by the system's chooser: a game folder, a math release.
- FieldA control with its label, a hint and an error; it wires the ids a screen reader needs.
- InputA line of text: a name, an amount, an address.
- LabelThe name of a control; a click on it focuses the control.
- SelectOne choice out of a short list.
Data display
- BadgeA short state or role beside a name: a part's status, a release's state, a member's role.
- Code blockCode to read or copy, with a caption and a Copy button; it can draw a highlighter's tokens.
- Inline codeA code in running text, in the mono face: a refusal's code, an identifier.
- QR codeA QR code a phone scans: an authenticator's set-up, a link to open on another device.
- TableRows of records with a caption; it scrolls sideways on a narrow screen.
Feedback
- AlertA notice inside the page: information, or an error with what to do next.
- Alert dialogAsks to confirm an action that cannot be undone, before it runs.
- EmptyWhat a list says when it has nothing yet, and the first thing to do.
- ProgressHow far a long job has come: an upload, a build.
- SkeletonA place held for content that loads.
- ToastA short message that comes and goes by itself: a change saved, an upload done.
Navigation
- BreadcrumbWhere the page sits: the path from the top to here.
- SidebarA side navigation: its groups of links beside the page on a large screen, behind one button that opens and closes it on a phone.
- Site headerThe top of every front: brand, context, navigation, actions, and a menu on a phone.
- TabsViews of one thing, one at a time: a release's summary, files and history.
Layout
- CardA framed box: a body, a media or preview area with a footer, a card that is one link, a framed grid of cells and a framed list.
- DrawerA sheet from the bottom of a narrow screen: a handle bar while closed, the drawer's height while open.
- Grid linesThe column grid drawn as hairlines behind a first screen.
- Page headerThe head of a page: eyebrow, title, lede and actions; hero size for a first screen.
- Portal rootNames, once at the top of a tree, the element the kit's portals open in: a select's list, an alert dialog, a drawer.
- SectionA band of a page with its eyebrow, title and lead; inverse is the dark band; compact is a titled group of a panel.