Skip to main content

Header

A flexible section header component with icon, title, description, size variants, action slots, and configurable heading level for accessibility. Includes staggered reveal animation, icon hover effects, loading skeleton state, and compound components for custom layouts.

Installation

$ npx shadcn@latest add @orecus/header
Dependencies:
motion
Registry:
skeleton

Component

With icon and description

Components

Browse and install UI components

With action button

Documents

Manage your documents

With multiple actions

Team Members

Manage team access and permissions

Title only

Simple Header

Props

PropTypeDefaultDescription
title*stringThe title text
size'sm' | 'md' | 'lg' | 'xl''md'Size variant affecting font size and semantic heading level (xl=h1, lg=h2, md=h3, sm=h4)
descriptionstringThe description text below the title
iconLucideIconThe icon to display (from lucide-react)
actionsReactNodeContent to render in the actions area (right side). Use Fragment to compose multiple items.
loadingbooleanfalseShows skeleton loading state when true
animatedbooleantrueWhether to animate the entrance with staggered fade-in and slide-up effects
classNamestringAdditional CSS classes for the container
titleClassNamestringAdditional CSS classes for the title
iconClassNamestringAdditional CSS classes for the icon
iconContainerClassNamestringAdditional CSS classes for the icon container

Compound Components

Header.Root

The root container for the header.

PropTypeDefaultDescription
childrenReactNodeThe children of the header
classNamestringAdditional CSS classes
loadingbooleanWhether the component is in a loading state

Header.Description

A description text component for the header.

PropTypeDefaultDescription
childrenReactNodeThe description text
classNamestringAdditional CSS classes
animationDelaynumberDelay for the enter animation

Header.Actions

A container for header actions (buttons, etc.).

PropTypeDefaultDescription
childrenReactNodeThe action elements
classNamestringAdditional CSS classes
animationDelaynumberDelay for the enter animation