Duolith docs

Kit parts

Every built-in part, imported from the kit. Each page is generated from the part's specification in spec/kit/. The guide is Kit.

Parts

PartWhat it isStability
AccordionSections that each open and close under their heading: one at a time, or several.experimental
ActionSheetA short list of actions in a sheet from the bottom edge, with a cancel button.experimental
AlertDialogAsks the person to confirm or cancel an action, such as deleting, with a destructive variant for actions that cannot be undone.experimental
AvatarA person's photo, or their initials when there is none, with an optional presence dot.experimental
BadgeA short status word or count, in four tones, soft or solid.experimental
BannerA message across a screen or a section, in a tone, with an optional action and a dismiss button.experimental
BreadcrumbsThe path from the top of the app to this screen, for wide layouts: links up, then the current page.experimental
ButtonThe main pressable control: a label, an optional icon, in four variants and three sizes.experimental
CardA raised surface that groups related content, with an optional title, media and press.experimental
CheckboxA box that is ticked or not, with its label and hint beside it; pressing the label ticks it too.experimental
ChipGroupA labelled, wrapping set of filter chips: one chosen at a time, or several with multiple.experimental
ChipInputA field that turns each entry into a chip when Enter is pressed, each with a remove button.experimental
ChipA small toggle for filtering, such as Open now or Vegan, that stays pressed in while it is on.experimental
ComboboxA text field that suggests options as the user types; choosing one fills the field.experimental
DataTableRows of data under column headings, sorted by pressing a sortable heading.experimental
DatePickerAn inline calendar, one month at a time, for choosing a day, with limits, days that cannot be chosen, and names from the locale.experimental
DateRangePickerAn inline calendar, one month at a time, for choosing a first and a last day, with the days between marked, limits, days that cannot be chosen, and names from the locale.experimental
DialogA modal in the middle of the screen, over a backdrop, with a title, an optional message, a body and actions.experimental
DividerA thin line between content, horizontal or vertical, with an optional label in the middle.experimental
DrawerA modal panel that slides in from the start edge over the screen, such as an app's sections, closed by Escape, the scrim, its Close button or a swipe toward the edge.experimental
EmptyStateWhat a screen or list shows when there is nothing in it yet, and the one thing to do about it.experimental
ErrorStateWhat a screen shows when something it needed failed, with a way to try again.experimental
FabThe floating action button: the screen's main action, over its content at the bottom end.experimental
FileInputA button that asks for files or photos, and the list of those chosen, each with a remove button.experimental
IconButtonA round button that shows only an icon; its label is for assistive technology.experimental
ImageViewerOne image full screen to look at closely, with pinch, wheel and double-tap zoom, panning, and Escape or a swipe down to close.experimental
ImageA picture in a box of a fixed shape, with a placeholder while it loads, a fade-in, and a fallback when it cannot load.experimental
LinkA text link in the primary colour; a link to another site shows an arrow that says so.experimental
ListRowOne row of a list: a title, an optional subtitle, value and chevron, and leading and trailing content.experimental
MenuA list of actions that opens next to its trigger, with icons, destructive and disabled items, and dividers.experimental
NavHeaderThe bar at the top of a screen: a back button when there is a screen to go back to, the title, and leading and trailing actions.experimental
PagerOne page of a set at a time, such as onboarding cards, with previous, next, a dot per page, and a swipe left or right to move on or back.experimental
PaginationMoves through numbered pages: previous and next, and the pages near the current one.experimental
PopoverContent that opens next to its trigger, above the screen but not modal, flipping and shifting to stay in the window.experimental
ProgressBarHow far a task has got, from 0 to 1; without a value, that work is going on for an unknown time.experimental
ProgressRingHow far a task has got, from 0 to 1, as a ring with the percentage in its middle.experimental
PullToRefreshContent that is refreshed when it is pulled down from the top, such as a feed, with a spinner while it refreshes and a Refresh button that does the same.experimental
RadioGroupPicks one of a few options, all shown at once, each with an optional hint.experimental
RatingA score out of a number of stars, chosen with a press or the arrow keys, or shown read-only.experimental
SearchFieldA rounded search box with a search icon and a clear button, inside a search landmark.experimental
SectionA group of rows on one surface, under a header and over a footer note, with dividers between rows.experimental
SegmentedControlA row of two to five segments, exactly one of them chosen, for switching views or ranges.experimental
SelectPicks one of many options from a list that opens next to the field, with keyboard selection.experimental
SheetA panel that slides up from the bottom edge, with a handle, medium and large detents, and drag down or a backdrop press to dismiss.experimental
SkeletonA placeholder in the shape of content still loading: lines of text, a circle or a block.experimental
SliderPicks a number from a range, with its label and current value above it and the ends below.experimental
SpinnerShows that work is going on, for an unknown time, in the colour of the text around it.experimental
StepperA number with − and + buttons either side, for small counts such as guests or copies.experimental
SwipeRowA row whose actions slide out when it is swiped left, such as Archive and Delete on a message, with a More button that shows them without a swipe.experimental
TabBarItemOne tab of a TabBar: a link with an icon over a label, and an optional badge count, current while the route is inside it.experimental
TabBarThe row of tabs along the bottom of a layout, one TabBarItem per tab, clear of the home indicator.experimental
TabsIn-page tabs: a row of tabs over one panel that shows the chosen tab's content. Not the app's navigation tab bar, which belongs to routing.experimental
TextAreaA labelled text field of several lines, with a hint, an error and an optional character count.experimental
TextFieldA labelled single-line text field with a hint or an error under it.experimental
TimePickerAn hour and a minute, each a spinbutton with buttons above and below, and AM and PM where the locale uses a 12-hour clock.experimental
ToastThe region where toasts appear: short messages, queued, that go by themselves, with an optional action, swiped away or dismissed.experimental
ToggleRowA row with a label, an optional hint and icon, and a switch.experimental
ToolbarA row of actions, such as IconButtons, with one Tab stop and the arrow keys to move between them.experimental
TooltipA short description of the control it wraps, shown on hover and focus after a moment.experimental