T
Tray UI
AccordionAn accordion is a list of questions that open one at a time: hairline rows, a bold question, a plus tile that turns into a cross.
Activity Feedactivity-feedAn activity feed is the record of who did what, newest first: a mark, one sentence and the time for each event, joined by a hairline.
AlertAn alert is a message that stays in the page until its cause is gone: a tray row with an icon tile, a title and a sentence.
Alert Dialogalert-dialogAn alert dialog stops a person before something that cannot be undone, and makes them choose.
API Keysapi-keysAPI keys lists the keys of a workspace with the secret masked, and shows a new key in full once, at the moment it is made.
App Shellapp-shellThe app shell is the frame of a product: the sidebar on a tray at the start edge, the top bar over the content, and one centred column for the page.
Long read with contentsarticle-01A long read: standfirst, byline, a wide lead picture, the contents at the side, prose with a pull quote and figures, then tags and share links.
Article with key factsarticle-02A how-to article beside an ink card of key facts: a callout, a table of how long a jar keeps, numbered notes and a note of what was updated.
The end of an articlearticle-03Where an article ends: its last paragraphs, the author, the previous and next articles, comments with a reply, a comment form and three related ones.
Journalarticles-01The front page of a journal: its name, topic tabs, one featured article, a grid of six more, pages, and a letter to sign up for.
Search the articlesarticles-02A search of the journal: the query typed, topics and a year to narrow it, the number of results, rows with the words marked, and Load more.
Archivearticles-03Every article by month: tabs for the year, a row per article with its day, title and topic, and the topics and authors with their counts at the side.
Aspect Ratioaspect-ratioAspect ratio keeps a box in a fixed proportion while its width changes, so media never shifts the layout as it loads.
AttachmentAn attachment is a file or an image that travels with a message: a small tray with a tile, a name and one line about it.
Auth Formauth-formThe auth form is the card a person meets before the product: sign in or create an account. One column, one yellow button.
AvatarAn avatar stands for a person or a team: a softly squared tile with a photo or initials.
BadgeA badge is a short word or a number on a small chip: a status, a tag, a count.
BannerA banner is one line across the top of a page or a section, about the whole product or the whole account: a trial that is ending, planned maintenance, a payment that failed.
Billing Summarybilling-summaryThe billing summary opens the billing page: the plan the workspace is on, what it costs and when it renews on an ink card, with the facts of the next invoice beside it.
Blog homeblog-01A blog home: the latest posts with their date, author and tags, pages at the end, and an about card, the tags and a subscribe form at the side.
Author pageblog-02One author's page: avatar, role, a short bio and links, three figures about their writing, their posts as cards with pages, and the other authors.
Posts with a tagblog-03One tag's page: tabs to switch tags, its posts by year in sections that fold, the current year open, and the season's figure and authors at the side.
BreadcrumbA breadcrumb shows where a page sits and leads back up, one level per link.
BubbleA bubble is the surface of a message: a soft block of fill around what was said.
ButtonA button starts an action; the yellow one is the single most important action in view.
Button Groupbutton-groupA button group is a tray that holds related buttons 4px apart, so they read as one control.
CalendarA calendar shows a month as a grid of days and takes one date or a range.
Call to Actioncall-to-actionThe call to action closes a page: one yellow card with the offer in a headline and the button that takes it.
CardA card is a tray: a grey surface with 40px corners that groups what belongs together. Fill alone sets it apart: no border, no shadow.
CarouselA carousel is one row of cards that scrolls sideways and snaps to each card, with previous and next buttons and a "2 / 5" count.
Catalog with filters on topcatalog-01Products in a grid of cards under a filter bar for type, size and price, with the count, the sort and pages; for a range that three filters cover.
Catalog with a filter columncatalog-02Products as rows beside a column of filters: checkboxes, a price limit and an in-stock switch. On a phone or a tablet the column opens from a button.
The range at a glancecatalog-03The whole range on one page: a tile per category with its count, a table of jar sizes with the price of 10 g, and the three products ordered most.
ChangelogThe changelog tells people what changed in the product: one entry per release, the date at the start edge, a title, a tag for the kind of change, and a short list.
CheckboxA checkbox turns one option on or off; a group of them lets several be on at once.
Cartcheckout-01The first step of a checkout, under a stepper: jars with a quantity, a meter to free delivery, a gift box with a note, a promo code and the summary.
One-page checkoutcheckout-02Contact, delivery with a day and a time slot, and the payment method on one page, beside the order summary.
Order placedcheckout-03The page after paying: the order number, the delivery, what happens next, the summary, and where the jars come from.
Checkout Summarycheckout-summaryThe checkout summary is the card beside a payment form: what is being bought, line by line, a place for a promo code, the total in the largest type, and the button that pays.
Code Blockcode-blockA code block sets code apart from prose: a tray in the mono face with a header that names it and copies it.
CollapsibleA collapsible shows and hides one block of detail under a short trigger, with a 44px plus tile that turns into a cross while open.
ComboboxA combobox is a field that filters a list as you type and takes one of its options.
CommandCommand is a search field over a list of destinations and actions: type a few letters, press Enter.
Context Menucontext-menuA context menu opens where something is right-clicked and offers the actions for that thing.
Cookie Consentcookie-consentCookie consent is a raised panel in the corner of the first visit: what is stored and why, and three equal ways to answer.
Tray UI core for ReactcoreWhat every Tray UI component in React needs: the helpers, the behaviours of the system as a module, the icons, and an import of the stylesheet from the package trayui.
Dashboarddashboard-01An app's home: a sidebar with a workspace switcher, four stat cards, a chart of orders per day and a table of the latest orders to select and sort.
Data Tabledata-tableA data table is a Table that can be searched, sorted, selected and paged.
Date Pickerdate-pickerA date picker is a field that opens a calendar and shows the chosen date in words.
Description Listdescription-listA description list sets out the facts about one thing as pairs: the name of the fact in soft ink at the start edge, its value beside it, a hairline between rows.
DialogA dialog asks for one decision or one small task in a panel over the page, and holds the page still until it is done.
DirectionDirection sets the reading direction of a region: with `dir="rtl"` every component inside mirrors, because the styles use logical properties throughout.
DrawerA drawer is a panel that rises from the bottom edge: the dialog of a phone.
Dropdown Menudropdown-menuA dropdown menu is a short list of actions that opens from a button.
EmptyAn empty state fills the place where content will be: an icon tile, a title, one sentence, and the action that makes the first item.
First runempty-01The orders page of a workspace on its first day: the first steps to take, a way to bring old orders, and the empty table where new ones will land.
No resultsempty-02A customer list whose search and filters match nobody: the filters stay in view, and the empty table names the near matches and clears the filters.
No accessempty-03A packer opens the reports: a dimmed picture of what the page holds, who can open it, a way to ask for access, and the pages that are open to them.
Feature Gridfeature-gridThe feature grid tells what the product does in a few cards of unequal size: each one a small icon tile, a title, and two lines.
Feedback Widgetfeedback-widgetThe feedback widget asks one question with a row of numbers, then offers a box for the reason, then says thanks.
FieldA field is one question in a form: a label, its control, and one line of help or error beneath. The control inside is linked to the label and the message by itself. The label is a `<label for>` the control; for a group of inputs, such as Input OTP, it is a span the group is named by (`aria-labelledby`).
File Uploadfile-uploadFile upload is a tray with a dashed edge that takes files dropped on it or chosen from the device, and lists them underneath.
Filter Barfilter-barThe filter bar sits over a list or a table: search at the start, filters as menus, sorting and the view at the end, and a chip for every filter that is on.
FooterThe footer ends every public page: the name and a line about the product, the site's links in columns, and a last row for the legal lines.
HeroThe hero is the first screen of a product's public page: what it is in one headline, one sentence, one yellow button, and something real to look at beside them.
Hover Cardhover-cardA hover card previews what is behind a link when the pointer rests on it: a person, an order, a note.
IconAn icon in the colour of the text around it. The system's icons are Lucide's: the ones built in go by name, and any other comes from `react-icons/lu`.
InputAn input takes one line of text: a grey fill, 16px corners, 56px tall, no stroke. The fill follows the ground: white on a grey card.
Input Groupinput-groupAn input group is one field that also holds an icon, a unit, a prefix or one small button.
Input OTPinput-otpInput OTP takes a short one-time code, one character per cell.
Integration Cardintegration-cardAn integration card stands for one outside service the product can work with: its mark, its name, what connecting it does, and the control that connects it.
Invite Forminvite-formThe invite form takes several emails at once, a role for all of them, and sends the invitations.
Invoice Listinvoice-listThe invoice list is the table of past invoices: number, date, amount, whether it was paid, and a button to download each.
ItemAn item is one row of a list: a media tile, a title with a line of detail, and something at the end.
KbdKbd shows a key of the keyboard as a small cap in the mono face.
LabelA label names a control in plain words, above it, in `label` type. A Field draws its own label; use Label for a control outside a Field.
lib-accountShared code for account: the components that need it bring it.
lib-chatShared code for chat: the components that need it bring it.
lib-fieldShared code for field: the components that need it bring it.
lib-formsShared code for forms: the components that need it bring it.
lib-navShared code for nav: the components that need it bring it.
lib-overlaysShared code for overlays: the components that need it bring it.
lib-shellShared code for shell: the components that need it bring it.
lib-staticShared code for static: the components that need it bring it.
LightboxA lightbox shows the pictures of a gallery one at a time, as large as the window allows, over the whole page.
Sign-in formlogin-01The plainest sign-in: a card centred on the page with email, a password you can show, a link for a forgotten one and six other accounts to use.
Sign-in page with a coverlogin-02The sign-in form in one half of the page, a cover in the other with a headline and a meter of the day's orders; for a sign-in that shows the product.
Sign-in page on a traylogin-03A white sign-in panel on a grey ground, with Google and Apple shown and four more accounts in a menu, and the terms and privacy notice below.
Sign-in card with a picturelogin-04A wide card with the sign-in form beside a dark panel that follows one order, with the time of each step, from its arrival to the courier.
Email-only sign-inlogin-05Sign-in without a password: a link to the email that works for 15 minutes, six other accounts and a passkey; for a product that signs in by link.
Sign-in with social accountslogin-06A sign-in card of six full-width account buttons and a link to use your email instead; for when most people use an account they already have.
MarkerA marker is a line in a conversation that is not a message: a date, a status, something the system did.
MenubarA menubar is the row of menus at the top of a working tool: File, Edit, View.
MessageA message is one row of a conversation: who spoke, what they said, and what happened to it.
Message Scrollermessage-scrollerThe message scroller is the window a conversation lives in: it keeps the newest message in view, and steps aside when the reader scrolls back.
Native Selectnative-selectA native select is the browser's own menu in the system's field: the right choice on phones and in long forms.
Navigation Menunavigation-menuThe navigation menu is the header of a site: the wordmark, a strip of links, and one small primary action.
Notification Centernotification-centerThe notification centre is the panel behind the bell: what happened while you were away, newest first, unread ones marked and counted on the bell.
Notification Preferencesnotification-preferencesNotification preferences is a grid of checkboxes: what can happen down the side, the ways to be told across the top.
Onboarding Checklistonboarding-checklistThe onboarding checklist gets a new workspace to its first real result: a short list of tasks, the next one opened with its button, a bar that fills as they are done.
Page Headerpage-headerThe page header names the page: its title in `title` type, one line about it, the page's actions at the end edge, and tabs for its sections underneath.
PaginationPagination moves through a long list one page at a time: 44px pages, the current one in solid ink, with Previous and Next on the resting fill.
Payment Methodpayment-methodPayment method lists the cards on file as choices, marks the one that is charged, and takes a new card in three fields.
Plan Comparisonplan-comparisonThe plan comparison is the full table under the pricing cards: every feature as a row, every plan as a column, a check, a dash or a number in each cell.
PopoverA popover is a small panel that opens beside the button that asked for it, for a few controls or a short explanation.
Plans at the end of a trialpricing-01Three plans side by side with a monthly or yearly switch, and what the trial used against the plan it fits.
Plans compared feature by featurepricing-02Every plan in one table, feature by feature in groups, with the price and a button at the head of each column.
Pricing by usagepricing-03One plan priced by the order: a slider that works out the month's price, what farms like yours pay, and questions that fold.
Pricing Tablepricing-tableThe pricing table sets the plans side by side: a card each with the name, the price as the largest thing on it, who it is for, one button, and what is included. One plan is yellow.
ProgressA progress bar shows how much of a known whole is done: an 8px pill in `track`, filled in ink, with its name and value above.
QuestionnaireA questionnaire asks a few questions one at a time, when an assistant or a flow needs answers before it can go on.
Radio Groupradio-groupA radio group picks exactly one option from a few that are all shown: plain radios for short lists, or choice cards for choices that need explaining.
ResizableResizable splits a box into two panes with a handle between them that can be dragged, or moved with the arrow keys.
Scroll Areascroll-areaA scroll area keeps a long list or a wide row inside a fixed box, with a thin scrollbar in the system's rule colour.
SelectA select picks one option from a short list that opens under its trigger.
SeparatorA separator is the one rule in the system: a 1px line in `hairline`.
Profile settingssettings-01A personal profile in sections: a photo to upload, name and contact, language and time, and one bar that saves every change.
Notifications by channelsettings-02Notification settings channel by channel: switches for email and the phone app, a phone number to add for text messages, and quiet hours for the night.
Security and the danger zonesettings-03Two-step sign-in, the devices you are signed in on, and deleting the workspace behind a dialog that asks you to type its name.
Settings Sectionsettings-sectionA settings section is one topic of a settings page: its name and a line of explanation in a narrow column at the start edge, its controls on a card beside it.
SheetA sheet is a panel that slides in from the side and keeps the page in view beside it.
Product pageshop-01A product page: pictures with thumbnails, the rating, sizes, the quantity, Add to cart, the delivery, tabs of details, reviews and four more products.
Cart page with product linesshop-02A cart inside the shop's header and footer: lines with a picture, quantity and Remove, the way to free delivery, three things to add and the summary.
Cart in a sheetshop-03Gifts on a page whose cart opens in a sheet at the side: lines with a quantity, the way to free delivery, the subtotal and Check out.
SidebarA sidebar is the navigation of an application: a tray down the side with groups of links, and the person's account at its foot.
Sidebar grouped by sectionsidebar-01The base app sidebar: a wordmark, main items with a count, two labelled sections and the user at the foot. Start here for one level of navigation.
Sidebar with sections that foldsidebar-02The base sidebar with labelled sections that fold under their headings, one open and one closed; for when there are many sections and people use few.
Sidebar with a second levelsidebar-03A sidebar with a second level always open under its items, such as the statuses under Orders; for a short second level used every day.
Sidebar with a level that foldssidebar-04A sidebar whose items fold open to show their second level, Orders open and the rest closed; for when the second level is too long to keep open.
Sidebar with menussidebar-05A sidebar whose items open their second level in a menu beside them, so the list stays short; for when people go straight to a page under an item.
Sidebar that collapses to iconssidebar-06A sidebar that a button in the top bar folds to a rail of icons with tooltips, with a workspace switcher, a meter of orders and an account menu.
Inset sidebarsidebar-07An inset sidebar on a grey ground, the page in one white panel: a workspace switcher, the main items, a list of recent batches and an account menu.
Two sidebarssidebar-08Two sidebars: a rail of section icons beside an inbox of messages with a search and an Unread switch; for when a section is a list to pick from.
Sidebar with a file treesidebar-09A sidebar for files: the changed files marked as modified, added or deleted, then a tree of folders that fold, with the open file in the breadcrumb.
Sidebar with a calendarsidebar-10A wide sidebar for a calendar: a month to pick the day, your own and the shared calendars as checkboxes in groups that fold, and a button to add one.
Sidebar at the endsidebar-11A sidebar at the end of the page with the contents of a long guide: headings, sub-headings, the current place marked and a link back to the top.
Sidebar on each sidesidebar-12Navigation at the start of the page and details at the end: one order's customer, items, total and next deliveries, with a button to pack it.
Sidebar under a site headersidebar-13A sidebar under a header that spans the whole product and holds the wordmark, the breadcrumb, a search, notifications and the account.
Sidebar in a dialogsidebar-14A settings dialog open over the app, with a sidebar of its own: six sections down the side and the notification switches of the chosen one.
Navigation in a popoversidebar-15A page with no sidebar: a Menu button in the header opens the navigation in a popover; for small products or pages that need the full width.
Sign-up formsignup-01The plainest sign-up: a card centred on the page with work email, a password of at least 12 characters, six other accounts and a line on the terms.
Sign-up page with a coversignup-02The sign-up form in one half of the page and a cover in the other, listing three things a new account gets, from 14 free days to exporting your data.
Sign-up page on a traysignup-03A white sign-up panel on a grey ground, with Google and Apple shown and four more accounts in a menu, and the terms and privacy notice below.
Sign-up card with a picturesignup-04A wide card with the sign-up form beside a panel of three first steps, from adding the products to packing the first order.
Sign-up with sign-in providerssignup-05Sign-up that leads with six accounts, with the email and password right below on the same page; for when people should see both ways at once.
Sign-up with social accountssignup-06A sign-up card of six full-width account buttons and a link to use your email instead; for when the email form can live on a page of its own.
SkeletonA skeleton holds the place of content that is loading, in the shape of what will arrive: a grey shape with a slow pulse.
SliderA slider picks a number from a range by dragging, when the feel of the value matters more than its digits.
SpinnerA spinner says that something is in progress and its length is unknown: an open ring in the text colour, always with words.
Stat Cardstat-cardA stat card shows one number that matters: what it counts, the figure, how it moved, and optionally the line of its last weeks.
Stat cards with a period switchstats-01Six stat cards in two groups under a switch between 7 days, 30 days and the season, each set against the period before, the season against last year.
Stat cards over a season chartstats-02Stat cards and one large chart of the season on the ink card, with the harvest by bed and the goals of the season beneath.
Breakdown by channelstats-03A breakdown of the month: orders by channel beside the best sellers with their share, then orders by city and the share of repeat customers.
StepperA stepper shows where a person is in a short, fixed sequence: the steps as numbered marks over a bar that fills as they go.
SwitchA switch turns one setting on or off, and the change applies at once.
TableA table sets figures in rows and columns: hairline rows, quiet heads, numbers aligned on the right.
Table with filters and bulk actionstable-01A table of batches in a card: a filter bar with search, two filters and a date range, rows to select with actions, a total and numbered pages.
Table with sortable columns and row menustable-02A table of customers with avatars, columns that sort, a search and a menu on each row, beside a sidebar folded to a rail.
Table with status tabs and a details sheettable-03Deliveries of the day in a table filtered by tabs with counts; each order opens its details in a sheet.
TabsTabs switch between views of the same thing: a tray strip of 44px tabs, the current one in solid ink.
Tag Inputtag-inputA tag input takes several short values in one field: each becomes a chip that can be removed, and the caret waits after the last one.
Team Membersteam-membersTeam members is the table of people in a workspace: who they are, their role, whether they have joined, and when they were last seen.
TestimonialA testimonial is a customer's own sentence about the product, set large, with who said it underneath.
TextareaA textarea takes several lines of text, in the same fill and corners as an input.
ToastA toast confirms that something just happened, in a small panel at the corner of the screen that leaves by itself.
ToggleA toggle is one button that stays pressed: on is solid ink, off is the resting fill.
Toggle Grouptoggle-groupA toggle group is the segmented control: a tray of segments where the selected one is solid ink.
TooltipA tooltip is one short line that names a control when the pointer or the keyboard is on it.
Top Bartop-barThe top bar is the row above the content: where you are at the start edge; search, notifications and the account at the end edge.
TourA tour points at parts of a screen one at a time: a small raised panel beside the part, with a count, a sentence or two, and "Next".
TraceA trace shows what an agent did on the way to an answer: one line per step, with its state and how long it took.
TypographyTypography sets text in one of the system's type styles: one grotesque, Onest, weight 700 with tight tracking for anything that names, weight 400 with open leading for anything that explains.
Upgrade Promptupgrade-promptAn upgrade prompt stands where a feature would be when the plan does not have it: what the feature does, which plan has it, and one button to get it.
UptimeUptime shows whether a service is working now and how it did over the last 90 days: its state in words, a bar per day, and the share of time it was up.
Usage Meterusage-meterA usage meter shows how much of a plan's allowance is used: a Progress bar per limit with `role="meter"`, the numbers in words, and a note once a limit is near.
User Menuuser-menuThe user menu opens from the avatar at the end of the top bar: who is signed in, then the account's pages, the theme, help and signing out.
Video Playervideo-playerA video player is a film with the system's controls under it: play, the place in the film, captions, sound and full screen.
Wiki pagewiki-01A handbook page beside a tree of pages: who edited it last, an infobox, numbered steps, a callout, a table and a question on whether it helped.
Wiki homewiki-02A handbook's front page: a search, the sections as tiles with their page counts, recent changes, the most read pages and those due for a review.
Page historywiki-03The history of a handbook page: revisions with the date, author, summary and size of each, two ticked to compare, and the difference line by line.
Workspace Switcherworkspace-switcherThe workspace switcher is the button at the top of the sidebar that says which workspace you are in and opens the list of the others.