Skip to content
  • Getting started
  • Appearance
  • Colors
  • Radius
  • Shadows
  • Motion
  • Overview
  • Headings
  • Body
  • Labels
  • Caption
  • Code
  • All components
  • Alert
  • Alert Dialog
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • Checkbox
  • Code block
  • Combobox
  • Command
  • Dialog
  • Drawer
  • Dropdown menu
  • Empty
  • Field
  • Hover Card
  • Input
  • Input Group
  • Kbd
  • Popover
  • Radio Group
  • Scroll area
  • Select
  • Shimmer
  • Sidebar
  • Slider
  • Spinner
  • Switch
  • Tabs
  • Textarea
  • Toast
  • Tooltip
  • Typeset
  • Overview
  • Preferences
  • Create project
  1. Primitives

Components

Source components for everyday interfaces. Try them here, then make them yours.

Composed example

Workspace preferences

See how these components come together in a workspace preferences flow.

Explore preferences

Notifications

Keep up with your team.

33 components
Press to try the action.
Controls

Button

Trigger an action or submit a form.

Use the name your teammates know.

Controls

Field

Compose labels, controls, descriptions, and errors.

Profile

The name shown in your workspace.

Used for account notifications.

Controls

Input

Collect text with clear focus and validation states.

Shown on the project overview.62/280
Controls

Textarea

Collect longer text such as descriptions and comments.

โŒ˜K
https://
Controls

Input Group

Put icons, text, and buttons inside a field.

Selected: Personal workspace.
Controls

Select

Choose one option from a list.

Design
Research
Controls

Combobox

Search and choose from a long list.

Include in your project
Controls

Checkbox

Select options independently or as part of a form.

Visibility

Only you can see this project.

Everyone on the Design team can view and edit.

Anyone in the workspace can find it.

Controls

Radio Group

Choose one option from a short, visible set.

Receive notifications about this project.

Controls

Switch

Turn a setting on or off.

Contrast50
Controls

Slider

Pick a value from a continuous range.

Room to focus

Toggle the live navigation.

Navigation

Sidebar

Compose responsive application navigation.

Website refresh

Active

Design studio ยท Updated today

Tasks12
Members3
Due dateOct 24
Navigation

Tabs

Move between related sections.

  1. Design studio
  2. More
  3. Projects
  4. Website refresh

Select a parent to go back.

Navigation

Breadcrumb

Show where a page sits and link back to its parents.

Suggestions
New documentโŒ˜N
Search files
Open recent
Settings
Notifications
Appearance
Toggle dark mode
PreferencesโŒ˜,
โŒ˜J

Navigation

Command

Search and run commands from the keyboard.

Press Esc to close and return to the trigger.

Overlays

Dialog

Focus a task in a modal.

Swipe toward the edge, click outside, or press Esc to close.

Overlays

Drawer

Slide a panel in from a screen edge.

Press Esc or click outside to close.

Overlays

Popover

Show a small interactive panel anchored to its trigger.

Reviewed by yesterday.

Hover or focus the name to preview the profile.

Overlays

Hover Card

Preview more about a link on hover or focus.

Clicking outside wonโ€™t close it. Choose Cancel or press Esc.

Overlays

Alert Dialog

Confirm a destructive or irreversible action.

Press to try the action.
Overlays

Tooltip

Explain an icon action on hover or focus.

Choose an action to see its feedback.
Overlays

Dropdown menu

Group related actions in a popup.

Feedback

Toast

Confirm actions without interrupting the task.

PublishedTrialCurrentInternal
Feedback

Badge

Show a status, count, or category.

Changes saved
Your project is up to date and ready to share.
Feedback

Alert

Explain success, errors, and next steps.

Syncing 3 projectsโ€ฆ

Feedback

Spinner

Show that work is in progress.

Generating responseโ€ฆ

Reading 4 filesโ€ฆ

Indexing the workspaceโ€ฆ
Response generated.
Feedback

Shimmer

Animate status text while work is in progress.

No documents yet
Write specs, meeting notes, and decisions in one place. Documents you create or that teammates share with you will show up here.

Tip: pressโŒ˜Nfrom anywhere to start a document.

Feedback

Empty

Explain an empty view and offer the next step.

โŒ˜KShiftโ†ตEscโŒ˜K
Create issue
C
Search
โŒ˜K
Toggle sidebar
โŒ˜B
Send comment
โŒ˜โ†ต
Content

Kbd

Show keyboard keys and shortcuts.

PNPNPNJZJL
SK

Sam Kim

Online

PNJLSK
+5
Content

Avatar

Show a person or workspace with an image or initials.

Building a Live Search Box

The useSearch hook turns a text field into instant search. It debounces typing, cancels stale requests, and keeps results in step with the query so the list never flashes old matches.

In short, useSearch gives you:

  • Debounced queries: requests wait until typing pauses, so the server sees one call instead of ten.
  • Cancellation: a new query aborts the previous request before its results arrive.
  • Result state: loading, empty, and error states come back with the matches.
Content

Typeset

Style Markdown, descriptions, and chat replies for reading.

  • v2.24.0Faster search indexing
  • v2.23.0Keyboard shortcuts for every menu
  • v2.22.0Dark mode refinements
  • v2.21.0New export formats
  • v2.20.0Improved offline sync
  • v2.19.0Accessibility fixes
  • v2.18.0Faster search indexing
  • v2.17.0Keyboard shortcuts for every menu
  • v2.16.0Dark mode refinements
  • v2.15.0New export formats
  • v2.14.0Improved offline sync
  • v2.13.0Accessibility fixes
  • v2.12.0Faster search indexing
  • v2.11.0Keyboard shortcuts for every menu
  • v2.10.0Dark mode refinements
  • v2.9.0New export formats
  • v2.8.0Improved offline sync
  • v2.7.0Accessibility fixes
  • v2.6.0Faster search indexing
  • v2.5.0Keyboard shortcuts for every menu
  • v2.4.0Dark mode refinements
  • v2.3.0New export formats
  • v2.2.0Improved offline sync
  • v2.1.0Accessibility fixes

Hover the list or scroll it to show the scrollbar.

Content

Scroll area

Scroll content in a fixed space with a thin scrollbar that appears on hover.

use-search.ts
Content

Code block

Show highlighted code, terminal output, and changed lines with a header, actions, and copy.