Skip to content

Browse components

← All components

Header

Page header layout with brand, nav, and actions slots.

Install
npx shadcn@latest add https://ui.anuragroy.dev/r/header.json

Preview

Loading preview…

Installation

Add the component from this site. The shadcn CLI fetches the registry JSON over HTTPS — no named registry submission required.

Terminal
npx shadcn@latest add https://ui.anuragroy.dev/r/header.json

GitHub fallback if the website is down:

Terminal
npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/header.json

Usage

Import paths follow your components.json aliases. After install, the default path is @/components/ui/header.

Import
import {  Header,  HeaderActions,  HeaderBrand,  HeaderInner,  HeaderNav} from "@/components/ui/header"
example.tsx
import { Button } from "@/components/ui/button"import {  Header,  HeaderActions,  HeaderBrand,  HeaderInner,  HeaderNav,} from "@/components/ui/header"export function Example() {  return (    <Header>      <HeaderInner>        <HeaderBrand>Acme</HeaderBrand>        <HeaderNav>          <a href="/docs">Docs</a>        </HeaderNav>        <HeaderActions>          <Button size="sm">Sign in</Button>        </HeaderActions>      </HeaderInner>    </Header>  )}

API Reference

Header

Landmark `header` with composition slots.

PropTypeDefault
classNamestring—