T
Tray UI
/
items
Files
Code
Info
Accordion
An 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 Feed
activity-feed
An 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.
Alert
An 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 Dialog
alert-dialog
An alert dialog stops a person before something that cannot be undone, and makes them choose.
API Keys
api-keys
API 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 Shell
app-shell
The 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 contents
article-01
A 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 facts
article-02
A 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 article
article-03
Where an article ends: its last paragraphs, the author, the previous and next articles, comments with a reply, a comment form and three related ones.
Journal
articles-01
The 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 articles
articles-02
A 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.
Archive
articles-03
Every 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 Ratio
aspect-ratio
Aspect ratio keeps a box in a fixed proportion while its width changes, so media never shifts the layout as it loads.
Attachment
An 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 Form
auth-form
The auth form is the card a person meets before the product: sign in or create an account. One column, one yellow button.
Avatar
An avatar stands for a person or a team: a softly squared tile with a photo or initials.
Badge
A badge is a short word or a number on a small chip: a status, a tag, a count.
Banner
A 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 Summary
billing-summary
The 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 home
blog-01
A 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 page
blog-02
One 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 tag
blog-03
One 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.
Breadcrumb
A breadcrumb shows where a page sits and leads back up, one level per link.
Bubble
A bubble is the surface of a message: a soft block of fill around what was said.
Button
A button starts an action; the yellow one is the single most important action in view.
Button Group
button-group
A button group is a tray that holds related buttons 4px apart, so they read as one control.
Calendar
A calendar shows a month as a grid of days and takes one date or a range.
Call to Action
call-to-action
The call to action closes a page: one yellow card with the offer in a headline and the button that takes it.
Card
A card is a tray: a grey surface with 40px corners that groups what belongs together. Fill alone sets it apart: no border, no shadow.
Carousel
A 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 top
catalog-01
Products 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 column
catalog-02
Products 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 glance
catalog-03
The 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.
Changelog
The 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.
Checkbox
A checkbox turns one option on or off; a group of them lets several be on at once.
Cart
checkout-01
The 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 checkout
checkout-02
Contact, delivery with a day and a time slot, and the payment method on one page, beside the order summary.
Order placed
checkout-03
The page after paying: the order number, the delivery, what happens next, the summary, and where the jars come from.
Checkout Summary
checkout-summary
The 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 Block
code-block
A code block sets code apart from prose: a tray in the mono face with a header that names it and copies it.
Collapsible
A collapsible shows and hides one block of detail under a short trigger, with a 44px plus tile that turns into a cross while open.
Combobox
A combobox is a field that filters a list as you type and takes one of its options.
Command
Command is a search field over a list of destinations and actions: type a few letters, press Enter.
Context Menu
context-menu
A context menu opens where something is right-clicked and offers the actions for that thing.
Cookie Consent
cookie-consent
Cookie 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 React
core
What 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.
Dashboard
dashboard-01
An 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 Table
data-table
A data table is a Table that can be searched, sorted, selected and paged.
Date Picker
date-picker
A date picker is a field that opens a calendar and shows the chosen date in words.
Description List
description-list
A 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.
Dialog
A dialog asks for one decision or one small task in a panel over the page, and holds the page still until it is done.
Direction
Direction sets the reading direction of a region: with `dir="rtl"` every component inside mirrors, because the styles use logical properties throughout.
Drawer
A drawer is a panel that rises from the bottom edge: the dialog of a phone.
Dropdown Menu
dropdown-menu
A dropdown menu is a short list of actions that opens from a button.
Empty
An 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 run
empty-01
The 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 results
empty-02
A 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 access
empty-03
A 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 Grid
feature-grid
The 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 Widget
feedback-widget
The feedback widget asks one question with a row of numbers, then offers a box for the reason, then says thanks.
Field
A 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 Upload
file-upload
File upload is a tray with a dashed edge that takes files dropped on it or chosen from the device, and lists them underneath.
Filter Bar
filter-bar
The 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.
Footer
The 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.
Hero
The 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 Card
hover-card
A hover card previews what is behind a link when the pointer rests on it: a person, an order, a note.
Icon
An 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`.
Input
An 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 Group
input-group
An input group is one field that also holds an icon, a unit, a prefix or one small button.
Input OTP
input-otp
Input OTP takes a short one-time code, one character per cell.
Integration Card
integration-card
An 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 Form
invite-form
The invite form takes several emails at once, a role for all of them, and sends the invitations.
Invoice List
invoice-list
The invoice list is the table of past invoices: number, date, amount, whether it was paid, and a button to download each.
Item
An item is one row of a list: a media tile, a title with a line of detail, and something at the end.
Kbd
Kbd shows a key of the keyboard as a small cap in the mono face.
Label
A 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-account
Shared code for account: the components that need it bring it.
lib-chat
Shared code for chat: the components that need it bring it.
lib-field
Shared code for field: the components that need it bring it.
lib-forms
Shared code for forms: the components that need it bring it.
lib-nav
Shared code for nav: the components that need it bring it.
lib-overlays
Shared code for overlays: the components that need it bring it.
lib-shell
Shared code for shell: the components that need it bring it.
lib-static
Shared code for static: the components that need it bring it.
Lightbox
A lightbox shows the pictures of a gallery one at a time, as large as the window allows, over the whole page.
Sign-in form
login-01
The 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 cover
login-02
The 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 tray
login-03
A 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 picture
login-04
A 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-in
login-05
Sign-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 accounts
login-06
A 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.
Marker
A marker is a line in a conversation that is not a message: a date, a status, something the system did.
Menubar
A menubar is the row of menus at the top of a working tool: File, Edit, View.
Message
A message is one row of a conversation: who spoke, what they said, and what happened to it.
Message Scroller
message-scroller
The 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 Select
native-select
A native select is the browser's own menu in the system's field: the right choice on phones and in long forms.
Navigation Menu
navigation-menu
The navigation menu is the header of a site: the wordmark, a strip of links, and one small primary action.
Notification Center
notification-center
The 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 Preferences
notification-preferences
Notification preferences is a grid of checkboxes: what can happen down the side, the ways to be told across the top.
Onboarding Checklist
onboarding-checklist
The 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 Header
page-header
The 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.
Pagination
Pagination 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 Method
payment-method
Payment method lists the cards on file as choices, marks the one that is charged, and takes a new card in three fields.
Plan Comparison
plan-comparison
The 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.
Popover
A 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 trial
pricing-01
Three plans side by side with a monthly or yearly switch, and what the trial used against the plan it fits.
Plans compared feature by feature
pricing-02
Every plan in one table, feature by feature in groups, with the price and a button at the head of each column.
Pricing by usage
pricing-03
One plan priced by the order: a slider that works out the month's price, what farms like yours pay, and questions that fold.
Pricing Table
pricing-table
The 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.
Progress
A 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.
Questionnaire
A questionnaire asks a few questions one at a time, when an assistant or a flow needs answers before it can go on.
Radio Group
radio-group
A 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.
Resizable
Resizable splits a box into two panes with a handle between them that can be dragged, or moved with the arrow keys.
Scroll Area
scroll-area
A scroll area keeps a long list or a wide row inside a fixed box, with a thin scrollbar in the system's rule colour.
Select
A select picks one option from a short list that opens under its trigger.
Separator
A separator is the one rule in the system: a 1px line in `hairline`.
Profile settings
settings-01
A personal profile in sections: a photo to upload, name and contact, language and time, and one bar that saves every change.
Notifications by channel
settings-02
Notification 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 zone
settings-03
Two-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 Section
settings-section
A 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.
Sheet
A sheet is a panel that slides in from the side and keeps the page in view beside it.
Product page
shop-01
A 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 lines
shop-02
A 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 sheet
shop-03
Gifts 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.
Sidebar
A 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 section
sidebar-01
The 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 fold
sidebar-02
The 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 level
sidebar-03
A 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 folds
sidebar-04
A 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 menus
sidebar-05
A 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 icons
sidebar-06
A 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 sidebar
sidebar-07
An 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 sidebars
sidebar-08
Two 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 tree
sidebar-09
A 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 calendar
sidebar-10
A 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 end
sidebar-11
A 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 side
sidebar-12
Navigation 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 header
sidebar-13
A sidebar under a header that spans the whole product and holds the wordmark, the breadcrumb, a search, notifications and the account.
Sidebar in a dialog
sidebar-14
A 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 popover
sidebar-15
A 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 form
signup-01
The 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 cover
signup-02
The 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 tray
signup-03
A 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 picture
signup-04
A 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 providers
signup-05
Sign-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 accounts
signup-06
A 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.
Skeleton
A skeleton holds the place of content that is loading, in the shape of what will arrive: a grey shape with a slow pulse.
Slider
A slider picks a number from a range by dragging, when the feel of the value matters more than its digits.
Spinner
A spinner says that something is in progress and its length is unknown: an open ring in the text colour, always with words.
Stat Card
stat-card
A 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 switch
stats-01
Six 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 chart
stats-02
Stat 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 channel
stats-03
A breakdown of the month: orders by channel beside the best sellers with their share, then orders by city and the share of repeat customers.
Stepper
A stepper shows where a person is in a short, fixed sequence: the steps as numbered marks over a bar that fills as they go.
Switch
A switch turns one setting on or off, and the change applies at once.
Table
A table sets figures in rows and columns: hairline rows, quiet heads, numbers aligned on the right.
Table with filters and bulk actions
table-01
A 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 menus
table-02
A 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 sheet
table-03
Deliveries of the day in a table filtered by tabs with counts; each order opens its details in a sheet.
Tabs
Tabs switch between views of the same thing: a tray strip of 44px tabs, the current one in solid ink.
Tag Input
tag-input
A 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 Members
team-members
Team members is the table of people in a workspace: who they are, their role, whether they have joined, and when they were last seen.
Testimonial
A testimonial is a customer's own sentence about the product, set large, with who said it underneath.
Textarea
A textarea takes several lines of text, in the same fill and corners as an input.
Toast
A toast confirms that something just happened, in a small panel at the corner of the screen that leaves by itself.
Toggle
A toggle is one button that stays pressed: on is solid ink, off is the resting fill.
Toggle Group
toggle-group
A toggle group is the segmented control: a tray of segments where the selected one is solid ink.
Tooltip
A tooltip is one short line that names a control when the pointer or the keyboard is on it.
Top Bar
top-bar
The top bar is the row above the content: where you are at the start edge; search, notifications and the account at the end edge.
Tour
A 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".
Trace
A trace shows what an agent did on the way to an answer: one line per step, with its state and how long it took.
Typography
Typography 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 Prompt
upgrade-prompt
An 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.
Uptime
Uptime 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 Meter
usage-meter
A 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 Menu
user-menu
The 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 Player
video-player
A video player is a film with the system's controls under it: play, the place in the film, captions, sound and full screen.
Wiki page
wiki-01
A 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 home
wiki-02
A 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 history
wiki-03
The 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 Switcher
workspace-switcher
The 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.
Select a component to view its code
Click on any item in the sidebar to get started
Select a component to view its information
Accordion
An 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 Feed
activity-feed
An 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.
Alert
An 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 Dialog
alert-dialog
An alert dialog stops a person before something that cannot be undone, and makes them choose.
API Keys
api-keys
API 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 Shell
app-shell
The 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 contents
article-01
A 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 facts
article-02
A 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 article
article-03
Where an article ends: its last paragraphs, the author, the previous and next articles, comments with a reply, a comment form and three related ones.
Journal
articles-01
The 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 articles
articles-02
A 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.
Archive
articles-03
Every 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 Ratio
aspect-ratio
Aspect ratio keeps a box in a fixed proportion while its width changes, so media never shifts the layout as it loads.
Attachment
An 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 Form
auth-form
The auth form is the card a person meets before the product: sign in or create an account. One column, one yellow button.
Avatar
An avatar stands for a person or a team: a softly squared tile with a photo or initials.
Badge
A badge is a short word or a number on a small chip: a status, a tag, a count.
Banner
A 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 Summary
billing-summary
The 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 home
blog-01
A 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 page
blog-02
One 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 tag
blog-03
One 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.
Breadcrumb
A breadcrumb shows where a page sits and leads back up, one level per link.
Bubble
A bubble is the surface of a message: a soft block of fill around what was said.
Button
A button starts an action; the yellow one is the single most important action in view.
Button Group
button-group
A button group is a tray that holds related buttons 4px apart, so they read as one control.
Calendar
A calendar shows a month as a grid of days and takes one date or a range.
Call to Action
call-to-action
The call to action closes a page: one yellow card with the offer in a headline and the button that takes it.
Card
A card is a tray: a grey surface with 40px corners that groups what belongs together. Fill alone sets it apart: no border, no shadow.
Carousel
A 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 top
catalog-01
Products 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 column
catalog-02
Products 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 glance
catalog-03
The 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.
Changelog
The 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.
Checkbox
A checkbox turns one option on or off; a group of them lets several be on at once.
Cart
checkout-01
The 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 checkout
checkout-02
Contact, delivery with a day and a time slot, and the payment method on one page, beside the order summary.
Order placed
checkout-03
The page after paying: the order number, the delivery, what happens next, the summary, and where the jars come from.
Checkout Summary
checkout-summary
The 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 Block
code-block
A code block sets code apart from prose: a tray in the mono face with a header that names it and copies it.
Collapsible
A collapsible shows and hides one block of detail under a short trigger, with a 44px plus tile that turns into a cross while open.
Combobox
A combobox is a field that filters a list as you type and takes one of its options.
Command
Command is a search field over a list of destinations and actions: type a few letters, press Enter.
Context Menu
context-menu
A context menu opens where something is right-clicked and offers the actions for that thing.
Cookie Consent
cookie-consent
Cookie 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 React
core
What 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.
Dashboard
dashboard-01
An 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 Table
data-table
A data table is a Table that can be searched, sorted, selected and paged.
Date Picker
date-picker
A date picker is a field that opens a calendar and shows the chosen date in words.
Description List
description-list
A 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.
Dialog
A dialog asks for one decision or one small task in a panel over the page, and holds the page still until it is done.
Direction
Direction sets the reading direction of a region: with `dir="rtl"` every component inside mirrors, because the styles use logical properties throughout.
Drawer
A drawer is a panel that rises from the bottom edge: the dialog of a phone.
Dropdown Menu
dropdown-menu
A dropdown menu is a short list of actions that opens from a button.
Empty
An 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 run
empty-01
The 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 results
empty-02
A 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 access
empty-03
A 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 Grid
feature-grid
The 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 Widget
feedback-widget
The feedback widget asks one question with a row of numbers, then offers a box for the reason, then says thanks.
Field
A 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 Upload
file-upload
File upload is a tray with a dashed edge that takes files dropped on it or chosen from the device, and lists them underneath.
Filter Bar
filter-bar
The 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.
Footer
The 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.
Hero
The 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 Card
hover-card
A hover card previews what is behind a link when the pointer rests on it: a person, an order, a note.
Icon
An 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`.
Input
An 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 Group
input-group
An input group is one field that also holds an icon, a unit, a prefix or one small button.
Input OTP
input-otp
Input OTP takes a short one-time code, one character per cell.
Integration Card
integration-card
An 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 Form
invite-form
The invite form takes several emails at once, a role for all of them, and sends the invitations.
Invoice List
invoice-list
The invoice list is the table of past invoices: number, date, amount, whether it was paid, and a button to download each.
Item
An item is one row of a list: a media tile, a title with a line of detail, and something at the end.
Kbd
Kbd shows a key of the keyboard as a small cap in the mono face.
Label
A 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-account
Shared code for account: the components that need it bring it.
lib-chat
Shared code for chat: the components that need it bring it.
lib-field
Shared code for field: the components that need it bring it.
lib-forms
Shared code for forms: the components that need it bring it.
lib-nav
Shared code for nav: the components that need it bring it.
lib-overlays
Shared code for overlays: the components that need it bring it.
lib-shell
Shared code for shell: the components that need it bring it.
lib-static
Shared code for static: the components that need it bring it.
Lightbox
A lightbox shows the pictures of a gallery one at a time, as large as the window allows, over the whole page.
Sign-in form
login-01
The 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 cover
login-02
The 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 tray
login-03
A 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 picture
login-04
A 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-in
login-05
Sign-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 accounts
login-06
A 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.
Marker
A marker is a line in a conversation that is not a message: a date, a status, something the system did.
Menubar
A menubar is the row of menus at the top of a working tool: File, Edit, View.
Message
A message is one row of a conversation: who spoke, what they said, and what happened to it.
Message Scroller
message-scroller
The 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 Select
native-select
A native select is the browser's own menu in the system's field: the right choice on phones and in long forms.
Navigation Menu
navigation-menu
The navigation menu is the header of a site: the wordmark, a strip of links, and one small primary action.
Notification Center
notification-center
The 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 Preferences
notification-preferences
Notification preferences is a grid of checkboxes: what can happen down the side, the ways to be told across the top.
Onboarding Checklist
onboarding-checklist
The 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 Header
page-header
The 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.
Pagination
Pagination 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 Method
payment-method
Payment method lists the cards on file as choices, marks the one that is charged, and takes a new card in three fields.
Plan Comparison
plan-comparison
The 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.
Popover
A 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 trial
pricing-01
Three plans side by side with a monthly or yearly switch, and what the trial used against the plan it fits.
Plans compared feature by feature
pricing-02
Every plan in one table, feature by feature in groups, with the price and a button at the head of each column.
Pricing by usage
pricing-03
One plan priced by the order: a slider that works out the month's price, what farms like yours pay, and questions that fold.
Pricing Table
pricing-table
The 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.
Progress
A 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.
Questionnaire
A questionnaire asks a few questions one at a time, when an assistant or a flow needs answers before it can go on.
Radio Group
radio-group
A 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.
Resizable
Resizable splits a box into two panes with a handle between them that can be dragged, or moved with the arrow keys.
Scroll Area
scroll-area
A scroll area keeps a long list or a wide row inside a fixed box, with a thin scrollbar in the system's rule colour.
Select
A select picks one option from a short list that opens under its trigger.
Separator
A separator is the one rule in the system: a 1px line in `hairline`.
Profile settings
settings-01
A personal profile in sections: a photo to upload, name and contact, language and time, and one bar that saves every change.
Notifications by channel
settings-02
Notification 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 zone
settings-03
Two-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 Section
settings-section
A 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.
Sheet
A sheet is a panel that slides in from the side and keeps the page in view beside it.
Product page
shop-01
A 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 lines
shop-02
A 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 sheet
shop-03
Gifts 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.
Sidebar
A 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 section
sidebar-01
The 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 fold
sidebar-02
The 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 level
sidebar-03
A 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 folds
sidebar-04
A 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 menus
sidebar-05
A 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 icons
sidebar-06
A 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 sidebar
sidebar-07
An 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 sidebars
sidebar-08
Two 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 tree
sidebar-09
A 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 calendar
sidebar-10
A 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 end
sidebar-11
A 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 side
sidebar-12
Navigation 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 header
sidebar-13
A sidebar under a header that spans the whole product and holds the wordmark, the breadcrumb, a search, notifications and the account.
Sidebar in a dialog
sidebar-14
A 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 popover
sidebar-15
A 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 form
signup-01
The 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 cover
signup-02
The 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 tray
signup-03
A 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 picture
signup-04
A 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 providers
signup-05
Sign-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 accounts
signup-06
A 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.
Skeleton
A skeleton holds the place of content that is loading, in the shape of what will arrive: a grey shape with a slow pulse.
Slider
A slider picks a number from a range by dragging, when the feel of the value matters more than its digits.
Spinner
A spinner says that something is in progress and its length is unknown: an open ring in the text colour, always with words.
Stat Card
stat-card
A 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 switch
stats-01
Six 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 chart
stats-02
Stat 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 channel
stats-03
A breakdown of the month: orders by channel beside the best sellers with their share, then orders by city and the share of repeat customers.
Stepper
A stepper shows where a person is in a short, fixed sequence: the steps as numbered marks over a bar that fills as they go.
Switch
A switch turns one setting on or off, and the change applies at once.
Table
A table sets figures in rows and columns: hairline rows, quiet heads, numbers aligned on the right.
Table with filters and bulk actions
table-01
A 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 menus
table-02
A 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 sheet
table-03
Deliveries of the day in a table filtered by tabs with counts; each order opens its details in a sheet.
Tabs
Tabs switch between views of the same thing: a tray strip of 44px tabs, the current one in solid ink.
Tag Input
tag-input
A 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 Members
team-members
Team members is the table of people in a workspace: who they are, their role, whether they have joined, and when they were last seen.
Testimonial
A testimonial is a customer's own sentence about the product, set large, with who said it underneath.
Textarea
A textarea takes several lines of text, in the same fill and corners as an input.
Toast
A toast confirms that something just happened, in a small panel at the corner of the screen that leaves by itself.
Toggle
A toggle is one button that stays pressed: on is solid ink, off is the resting fill.
Toggle Group
toggle-group
A toggle group is the segmented control: a tray of segments where the selected one is solid ink.
Tooltip
A tooltip is one short line that names a control when the pointer or the keyboard is on it.
Top Bar
top-bar
The top bar is the row above the content: where you are at the start edge; search, notifications and the account at the end edge.
Tour
A 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".
Trace
A trace shows what an agent did on the way to an answer: one line per step, with its state and how long it took.
Typography
Typography 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 Prompt
upgrade-prompt
An 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.
Uptime
Uptime 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 Meter
usage-meter
A 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 Menu
user-menu
The 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 Player
video-player
A video player is a film with the system's controls under it: play, the place in the film, captions, sound and full screen.
Wiki page
wiki-01
A 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 home
wiki-02
A 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 history
wiki-03
The 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 Switcher
workspace-switcher
The 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.
Select a component to view its code
Click on any item in the sidebar to get started
Select a component to view its information