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
BlocksSite header

Site header

A sticky website header that turns solid on scroll, with a gliding active link, mega menu panels, and a mobile sheet.

$pnpm dlx shadcn@latest add @uiarc/site-header
Live block · sample data

When to use

  • The top bar of a marketing site, landing page, or docs site.
  • Product sites with grouped destinations that deserve a mega menu with a feature card.
  • Pages that need one clear sign-up action in the header.

When not to use

  • Use workspace-sidebar or sidebar-rail inside a signed-in app.
  • Use morph-nav for a single-surface animated navigation with built-in search.
  • Use menubar for application commands.

Installation

Add Site header with the shadcn CLI, or copy the source by hand.

$pnpm dlx shadcn@latest add @uiarc/site-headerpnpm dlx shadcn@latest add @uiarc/site-header

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 this as a starting point and replace the sample data with your own.

example.tsx
1import { SiteHeader } from "@/components/arc/blocks/site-header/site-header";2 3export function MarketingHeader() {4  return (5    <SiteHeader6      variant="simple"7      brand={{ name: "Acme", href: "/", mark: <Logo /> }}8      items={[9        { value: "product", label: "Product", href: "/product" },10        { value: "pricing", label: "Pricing", href: "/pricing" },11        { value: "docs", label: "Docs", href: "/docs" },12      ]}13      current="pricing"14      secondaryAction={{ label: "Sign in", href: "/sign-in" }}15      primaryAction={{ label: "Start free", href: "/sign-up" }}16    />17  );18}
Built fromMotion

API reference

2 parts. The first is the root.

SiteHeader

A marketing site header in three variants. It turns solid once the page scrolls, and on narrow containers the links move into a sheet.

PropTypeDefaultDescription
variant"simple" | "centered" | "mega""mega"`simple` puts links beside the brand, `centered` centers them in a quiet capsule, `mega` opens panels for items with links.
brand{ name: string; href?: string; mark?: ReactNode }{ name: "Arc" }Brand at the start of the bar.
itemsSiteHeaderItem[]siteHeaderExampleItemsTop level destinations: { value, label, href?, links?, feature? }. Items with links open a panel in the mega variant.
currentstring–Value of the item that holds the current page (controlled).
defaultCurrentstring–Initial current item when uncontrolled.
onCurrentChange(value: string) => void–Called when a destination inside an item is chosen, with that item's value.
onNavigate(destination: { label: string; href?: string; section?: string }) => void–Called for every destination: items, panel links, the brand, and actions with an href.
secondaryAction{ label: string; href?: string; onClick?: () => void } | null{ label: "Sign in" }A quiet action before the primary one. Pass null to hide it.
primaryAction{ label: string; href?: string; onClick?: () => void } | null{ label: "Get Arc" }The one primary action. Pass null to hide it.
stickybooleantrueSticks to the top of its scroll container.
scrollContainerRefObject<HTMLElement | null>–The element that scrolls, when it is not the window.
scrollThresholdnumber8Pixels of scroll before the background turns solid.
labelstring–Accessible name of the navigation landmark.
classNamestring–Extra class on the header.

SiteHeaderBlock

Default export: a preview with a variant switcher over a small scrolling page.

PropTypeDefaultDescription
variantSiteHeaderVariant"mega"Initial variant.

Keyboard interactions

ArrowLeftorArrowRight
Move between top level items in the mega variant.
ArrowDown
On an item with links, opens its panel and focuses the first link.
ArrowUporArrowDownorHomeorEnd
Move between links inside an open panel.
Escape
Closes the open panel or the mobile sheet and returns focus to its trigger.

Accessibility

  • A labelled nav landmark; the current item is marked with aria-current.
  • Panel triggers expose aria-expanded; outside presses and Escape close whichever layer is open.
  • The mobile sheet locks page scroll while open and returns focus to the menu button when closed.

Motion

  • Mega panels open on hover after a short intent delay and close after a leave grace; switching items morphs the panel to the new content.
  • The header background turns solid past scrollThreshold.
  • Reduced motion removes panel travel and uses fades.

Responsive behavior

  • It is a container-query component: below 760px of its own width the links, panels, and wide actions hide and a menu button opens a sheet.
  • From 760px the sheet and scrim are removed; widening the container closes an open sheet.
  • Hover-to-open panels only apply to fine pointers.

Performance

  • Panels mount only while open; the scroll listener updates a single solid-state attribute.
  • Feature images use next/image with sizes set, so they load only when a panel opens.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Choose it for marketing and docs sites. For in-app navigation use workspace-sidebar or sidebar-rail.
  • The defaults are Arc sample content; always pass brand, items, and actions for real sites.
  • Links render as anchors when an href is set; wire onNavigate for client-side routing or analytics.
  • The mega variant uses next/image for feature images; allow their host in your image config.
/components/blocks/site-header/markdown

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

Related

Morph navProComponentA navigation bar that morphs into rich menus, search, and a compact state as one surface.Site footerBlockA website footer with link columns and newsletter, a minimal layout, and a large fading Arc mark.Hero sectionBlockThree full screen SaaS heroes: a live dashboard rising from the bottom edge over a drifting mesh, a workflow graph that routes sample events node by node, and editorial type over a mesh gradient.BreadcrumbComponentShow where a page sits in a hierarchy.

More like this in Pro

Explore Pro
MCP serversProBlockManage the MCP servers that give an agent its tools: see what the enabled tools cost in context, connect or pause a server, and switch single tools on or off.Knowledge baseProBlockA retrieval knowledge base in one card: add sources and watch them parse, chunk, embed and index, then test a question and see which chunks come back and why.Eval suiteProBlockRun an evaluation suite on a new version of an LLM feature against its baseline: results stream in case by case, and regressions and fixes are called out with the cases behind them.
PreviousCheckout summaryNextSite footer
Arc · 122 block pagesllms.txt

On this page

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

Product