Components
The SevenOne components in code. More are on the way, matching the Figma library.
- AccordionStacked sections that open and close to show their content. Triggers are 56px tall with 16px text and a 20px chevron.
- AlertA callout for important messages. SevenOne adds Success, Warning and Info; every title and description is 7:1.
- Alert DialogAsks people to confirm an action that matters, such as deleting something. The default size is 512px wide; the small size is 320px and centered. Buttons are 44px.
- Aspect RatioKeeps images, videos and maps at a fixed ratio, such as 16/9, at any width.
- AvatarA person or team as an image or initials. Sizes: 32, 40 and 48px.
- BadgeA short label for status or category. SevenOne adds Success, Warning and Info, each 7:1 on its own background.
- BreadcrumbShows where the current page sits in the site. Text is 16px, chevrons are 20px, and every link has a 44px hit area.
- ButtonTriggers an action. Six variants and four sizes; every size is at least 44px tall, so it is easy to hit with a finger or a pointer.
- Button GroupJoins buttons, inputs and selects into one control, with shared borders and rounded ends. Horizontal or vertical, always 44px tall.
- CalendarA month grid for picking a day or a range. Day cells and navigation buttons are 44px (48px in Large mode), numbers are 16px and the padding is 12px. Built on react-day-picker.
- CardA surface that groups related content and actions, with header, content and footer areas.
- CarouselSlides you move with 44px round buttons (48px in Large mode), swipe or the arrow keys. One per view, several per view, or vertical. Built on Embla. It never moves on its own.
- ChartBar, line, area, donut and radial charts that use your theme. Series colors come from chart-1 to chart-5; every text uses the text colors at 16px. Tooltip, legend and a data table come ready. Built on Recharts.
- CheckboxLets people turn an option on or off. The box is 24px, and an invisible area around it makes the target 44px.
- CollapsibleShows and hides a panel. Use it for extra details, such as the rest of a list or an order summary.
- ComboboxA searchable select. The 44px trigger (48px in Large mode) opens a search field and a list of 44px options; the chosen one shows a check. Built on Popover and Command.
- CommandA searchable list of commands. It powers the ⌘K search on this site. Input and rows are 44px.
- Context MenuA menu that opens on right-click or long-press. Same items as the Dropdown Menu: 44px tall, 16px text and 20px icons.
- Data TableA table with filter, column menu, sorting, row selection and pages, ready to use. 44px controls and rows (48px in Large mode). Built on TanStack Table.
- Date PickerA 44px trigger (48px in Large mode) that opens the Calendar in a popover. The trigger shows the chosen date, or a placeholder in the muted color. Single date and range.
- DialogA window over the page that needs a response. The close button is 44px, and focus stays inside until it closes.
- DrawerA panel that slides in from an edge and can be dragged closed. The content column is 384px wide, the title is 18px and the footer buttons are 44px.
- Dropdown MenuA menu of actions or options that opens from a button. Every item is 44px tall, icons are 20px, and it supports checkboxes, radio groups and sub menus.
- EmptyWhat to show when there is nothing yet: an optional 40px icon box, a 20px title, a short description and the next actions.
- FieldPuts a label, a control, a description and an error together. The label sits 8px above the control and the description 8px below it, all in 16px text.
- Hover CardA preview that appears when the pointer rests on a link. It is 320px wide with 16px padding.
- InputA text field for short answers. 44px tall by default and 48px with the Large size, always with 16px text.
- Input GroupAdds icons, text and buttons inside an input or a textarea. 44px tall with 16px text; the small buttons keep a 44px hit area.
- Input OTPA field for one-time codes, with one 44 × 44px slot per digit and 16px text. The active slot shows the focus ring.
- ItemA row with media, a title, a description and actions. 16px text and 16px padding; the icon box is 32px and images are 40px.
- KbdShows a keyboard key or shortcut. 24px tall with 16px text.
- LabelNames a form control. Clicking the label focuses the control. Add required to show the asterisk.
- MenubarA desktop-style bar of menus. The bar and its triggers are 44px tall; the menu items match the Dropdown Menu: 44px, 16px text and 20px icons.
- Navigation MenuSite navigation with panels of links. Triggers are 44px tall with 16px text and a 12px chevron; links in the panels are at least 44px tall.
- PaginationMoves between pages of results. Page links are 44px; the current page is outlined. Previous and Next keep their text on every screen.
- PopoverRich content in a floating panel that opens from a trigger. It is 288px wide, with 16px padding and 16px text.
- ProgressShows how much of a task is done. The bar is 12px tall.
- Radio GroupA set of options where only one can be chosen. The circle is 24px with an invisible 44px hit area, and items sit 44px apart.
- ResizablePanels that people resize by dragging a handle. The handle is a 1px line with an optional 12 × 16px grip and a 44px hit area.
- Scroll AreaScrolls its content with a slim custom scrollbar: 10px wide with an 8px thumb that keeps 3:1 contrast.
- SelectPick one option from a list. The trigger has the same size and border as the Input, and every option is a 44px row.
- SeparatorA 1px line that divides content, horizontal or vertical.
- SheetA panel that slides in from any edge of the screen. Good for forms, filters and navigation on small screens. The close button is 44px.
- SidebarThe app sidebar from shadcn/ui's sidebar-07 block: it collapses to icons, becomes a sheet on phones and remembers its state. 288px open, 44px items (48px in Large mode), 16px text.
- SkeletonA placeholder shown while content loads. The pulse stops for people who prefer reduced motion.
- SliderPick a value, or a range with two thumbs, by dragging. The track is 8px and the thumb is 24px with an invisible 44px hit area.
- SpinnerShows that something is loading. It takes the current text color. Sizes: sm 12px, default 16px, lg 24px and xl 32px.
- SwitchTurns a setting on or off right away. 44 × 24px track with a 44px tall hit area.
- TableA responsive table. The header and rows are 44px (48px in Large), cells have 12px side padding, and wide tables scroll sideways on small screens.
- TabsSwitch between related views without leaving the page. Triggers are 44px tall and inactive labels stay at 7:1.
- TextareaA field for longer answers. Same border, focus ring and 16px text as the Input, and at least 120px tall.
- ToastShort messages that appear for a moment and go away on their own. Built on Sonner, with 16px text, status icons and 44px action buttons.
- ToggleA two-state button. When it is on it fills with the primary color, so the state is clear. Small and default are 44px; large is 48px.
- Toggle GroupA set of toggles that work together, with single or multiple choice. Items are 52px wide and 44px tall.
- TooltipA short label that appears on hover and keyboard focus. 16px text on the foreground color.