Arc
ComponentsBlocksScreensDocsPricingTry the demo
Get Pro
Saved

Docs

IntroductionInstallationThemingMotionAI and MCPChangelog

Components136

ButtonAction buttonSplit buttonButton groupFloating button groupExpanding button groupCopy buttonAction swapIcon morphConfirm morphTheme switcher

Hold to confirmSwipe actionsReactions

Dropdown menuContext menuUser menu

InputTextareaPassword fieldPassword strengthSearch fieldExpanding searchInline edit

Number fieldMoney inputPhone inputScrub inputTag inputMention inputShortcut recorder

SelectComboboxMulti-selectMorph selectChip group

Radio cardsBilling toggleCheckboxRadio groupSwitchSegmented controlRatingToggle group

SliderElastic sliderRange histogram sliderRuler sliderWindow rangeNewProLens rangeNewPro

CalendarDate pickerDate range pickerTime pickerColor pickerEmoji pickerPro

Rich text editorSignature padFile dropzoneAvatar uploadPro

TabsBreadcrumbPaginationMega menu morphProTable of contents progressPro

Scroll areaAccordionExpandable cardResizable panelsExpandable text

DialogDrawerBottom sheetPopoverHover cardTooltipShare accessProConfirm popoverPro

AlertToastToast stackAnnouncement barCookie consentUndo toastPro

ProgressSkeletonStepperCountdownUsage meterOnboarding checklist

AvatarAvatar groupBadgePresence stackPro

CardMetric cardEmpty stateMetric tickerPro

Line chartBar chartDonut chartStreamgraphBrush chartWaffle chartSlope chartSparklineGaugeActivity heatmapAnimated counterRidgelineTreemapSplit barPro

SunburstProSankey flowProFunnel chartProRadar chartProRealtime streamProRace bar chartProData gridPro

Sortable data tableTree tableTree viewReorderable listFilter toolbarCode blockJSON viewer

TimelineComment threadChat thread

Image compareCarouselCard stack

Text revealIn-view titleText morphText shimmer

Blocks122

KPI drilldownProMetric explorerProRevenue explorerProMRR waterfallProCohort retentionProUsage forecastProJourney flowProUptime statusProPivot builderProChoropleth explorerProConnected scatterProHorizon chartProAccount healthPro

Budget variancePro

Small multiplesProLine replayPro

AI chatProAI composerProAI answerProModel pickerProModel arenaProPrompt studioProDocument extractionProAgent memoryProAI side panelProAI inline editProResearch runProAI insight cardProCatch upProAI feature launchProAI search barProAI setup wizardProCall insightsProLead scoringPro

Agent runProAgent tasksProAgent approvalsProAgent routinesProAgent orchestratorProMCP serversProKnowledge baseProEval suiteProAgent builderProAgent galleryPro

SidebarPro4Page headerCommand paletteNotification centerSelection toolbarProEmpty statesSearch resultsPro

Login and sign up5, free and Pro variantsOnboarding illustrationProOTP inputMulti-step formProTwo-factor setupProMagic linkPro

Settings pageProSettings commandProSecurity settingsProBilling overviewProUsage billingProCancel flowProOnboarding surveyProSpend alertPro

Team membersProInvite peopleProRoles and permissionsProProfile pagePro

API keysProWebhooksProIntegrationsProImport wizardNewProEnvironment variablesProDomain verifyProWebhook testerPro

Plan comparisonPricing calculatorProUsage pricingProCart drawerProCheckout summaryProLive checkoutProSeat managerProCredit top-upPro

Wallet cardProDelivery trackerProSeat mapPro

Activity feedProSupport widgetProFeature votingPro

File uploadMedia playerPro

Availability pickerProRelease readinessProFeedback boardProSmart schedulerProTask breakdownProGoal trackerPro

Hero sectionHero signupPro

Scroll storyProSpotlight gridProFeature bentoProComparison table

Logo marqueeStudio perspectivesProStats band

Changelog feedFAQ sectionContact sectionTeam showcaseProBlog grid

Site headerSite footerCTA sectionNewsletter signup

Activity terrainProRevenue globeProCustomer galaxyProSemantic zoomProLayout morphProExploded viewPro

Screens14

Metrics dashboardProMarket terminalPro

Kanban boardProProject boardProGantt timelinePro

Week calendarProMonth calendarNewPro

Team directoryPro

Inbox triageProSupport conversationProHelp centerPro

Product listingProProduct detailProInvoice studioPro

Special components106

Share sheetProAction morphProMorph navProDockProLiquid tab barProOrbit menuPro

Glass menuProGlass segmentedProGlass cardProGlass tab barPro

Sheet stackProWallet stackProControl centerProHolo cardProCard to articleProLink unfurlPro

Product galleryProLightbox galleryProPhoto gridProCover flowPro

Voice orbProNow playingProVoice recorderPro

Booking pillProActivity ringsProTime dialProDate reelPro

Keycap keyboardProSlot textSand textProTypewriter terminalPro

Stretch refreshProMorph loaderProSkeleton morphProBlack holeProCharge sessionPro

Sticker peelProTicket tearProPage curlProOrbit logosProPrize wheelPro

Dot gridProImage trailProGravity wellProInk fluidProCursor trail drawPro

Agent statusProTool callProAgent planProAgent timelineProContext windowProReasoning blockProSource cardsProModel cardProAI workflowProCode suggestionProGhost textProImage generationProDictation buttonProSpeech playerProMeeting summaryProReply draftProAgent handoffProPII redactionProResponse feedbackProLLM cost calculatorProProvider keysProGeneration statsProAI translateProTL;DR toggleProConnector setupProSmart form fillProEnrich columnProTicket routerProAsk your dataProAgent cursorProProvider statusProTraining runProAI commandProStarter promptsProAI mascotProImage revealProAI sparkProPixel mascotProGhost mascotProCube mascotProTone tunerProUpgrade promptProReferral cardProTrial bannerProTeam switcherProLive visitorsProSocial proof toastProInstall snippetPro

Data flowProPayment flowProDNS resolutionProModel trainingProMulti-region failoverProVector searchProBranch graphProAgent loopProMixture of expertsProSpeculative decodingProPrompt cacheProReasoning treePro
What’s new4 new
BlocksCommand palette

Command palette

A complete keyboard driven action surface with search, grouped results, and shortcuts.

$pnpm dlx shadcn@latest add @uiarc/command-palette
Pattern · live

When to use

  • App-wide command search opened with Cmd or Ctrl plus K.
  • Jumping to pages, creating items, and running actions from one input.
  • Inline search panels that group results with shortcuts.

When not to use

  • Use combobox to pick a value inside a form.
  • Use dropdown-menu for a short list of actions.
  • Use expanding-search or search-field to search page content.

Installation

Add Command palette with the shadcn CLI, or copy the source by hand.

$pnpm dlx shadcn@latest add @uiarc/command-palettepnpm dlx shadcn@latest add @uiarc/command-palette

Adds the block and its local dependencies, and installs motion, lucide-react. First time? Add the @uiarc registry to components.json, or use the full URL:

Usage

Use it for product wide actions and navigation. Provide meaningful groups, icons, keyboard shortcuts, and handlers.

example.tsx
1import { CommandPalette, type CommandItem } from "@/components/arc/command-palette/command-palette";2 3const items: CommandItem[] = [4  { id: "new", label: "New project", group: "Create", shortcut: "N" },5  { id: "invite", label: "Invite teammate", group: "Team", keywords: ["member"] },6  { id: "theme", label: "Toggle theme", description: "Switch light and dark" },7];8 9export function Palette({ onClose }: { onClose: () => void }) {10  return <CommandPalette items={items} onSelect={item => run(item.id)} onClose={onClose} />;11}
Built fromSearchKeyboard navigationAction list

Examples

Inside a dialog

example.tsx
1<Dialog open={open} onOpenChange={setOpen}>2  <DialogContent title="Command palette">3    <CommandPalette4      items={items}5      onSelect={item => { run(item.id); setOpen(false); }}6      onClose={() => setOpen(false)}7    />8  </DialogContent>9</Dialog>

API reference

2 parts. The first is the root.

CommandPalette

An inline search-and-run panel: a combobox input over grouped, filtered results with one highlight that follows the active row.

PropTypeDefaultDescription
itemsRequiredCommandItem[]–Commands to search. Every word of the query must match: anywhere in the label, at a word start in the description or keywords, or as letters in order across the label ("shpr" finds Share project). Label prefixes rank first, groups follow their best match, and the matched letters render in medium weight.
placeholderstring"Search commands"Input placeholder.
onSelect(item: CommandItem) => void–Called on click or Enter. The query then clears and focus returns to the input.
onClose() => void–Called on Escape with an empty query. Also renders an Esc close button.
labelstring"Command palette"Visually hidden label for the input.
autoFocusbooleanfalseFocuses the search input on mount, for a palette that opens on demand.

CommandItem

Item type: { id: string; label: string; description?: string; group?: string; keywords?: string[]; icon?: ReactNode; shortcut?: string }. Items without a group land under Actions. A shortcut such as "⇧ N" or "Shift+N" renders one keycap per key.

No props.

Keyboard interactions

Cmd/Ctrl+K
Focuses the search input from anywhere on the page.
ArrowDownorArrowUp
Moves the active result.
HomeorEnd
Jumps to the first or last result.
Enter
Runs the active result. The first result is active as soon as results show.
Escape
Clears the query, or calls onClose when it is already empty.

Accessibility

  • The input is a combobox with aria-controls and aria-activedescendant pointing at the listbox option, so focus never leaves the input.
  • Results are role=option buttons with aria-selected, grouped in labelled role=group containers.
  • A polite live region announces the result count, or No results, as the query changes.
  • It renders inline, not in a modal. Put it in a dialog yourself if it should trap focus and close on outside click.

Motion

  • The panel rises in on a spring; the results frame springs to the list height as the query filters.
  • Remaining rows glide into place when the shift is small and snap when it is a long jump; the highlight follows the active row on the snappy spring for pointer and arrow keys.
  • Reduced motion removes the entrance, glides, and highlight travel.

Responsive behavior

  • It fills its container width; below 480px shortcut hints are hidden and padding tightens.
  • Below 340px the footer drops its last hint.
  • Results scroll inside a 342px maximum height, and long labels ellipsize.

Performance

  • Filtering is a simple substring match over label, description, group, and keywords on every keystroke.
  • Rows are not virtualized and animate with layout; keep lists to a few hundred items or filter on the server.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Use for app-wide command search. For picking a value inside a form use combobox; for a small list of actions use dropdown-menu.
  • Wrap it in dialog and pass onClose to close the dialog; map onSelect to your router or action handlers by item.id.
/components/blocks/command-palette/markdown

The full library index for assistants is at /llms.txt.

Related

DialogComponentA focused surface for decisions that need attention.ComboboxComponentSearch and select from a list without leaving the field.Dropdown menuComponentA focused list of actions anchored to a trigger.Expanding searchComponentAn icon that morphs into a search field with results beneath it.Search fieldComponentA recognizable search entry point with clear affordances.

More like this in Pro

Explore Pro
Selection toolbarProBlockA contextual batch action surface that appears when items are selected.SidebarProBlockApp and docs sidebars: a folding rail, a workspace switcher, a mail shell, and a docs tree.Search resultsProBlockA faceted workspace search page with suggestions, facet counts that follow the query, filter chips, mixed doc, person and file results with highlighted matches, a gliding keyboard cursor and a preview pane.
PreviousMedia playerNextNotification center
Arc · 122 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • Examples
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown