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@orecus/animation

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*string—The 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)
descriptionstring—The description text below the title
iconLucideIcon—The icon to display (from lucide-react)
actionsReactNode—Content 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
classNamestring—Additional CSS classes for the container
titleClassNamestring—Additional CSS classes for the title
iconClassNamestring—Additional CSS classes for the icon
iconContainerClassNamestring—Additional CSS classes for the icon container

Compound Components

Header.Root

The root container for the header.

PropTypeDefaultDescription
childrenReactNode—The children of the header
classNamestring—Additional CSS classes
loadingboolean—Whether the component is in a loading state

Header.Description

A description text component for the header.

PropTypeDefaultDescription
childrenReactNode—The description text
classNamestring—Additional CSS classes
animationDelaynumber—Delay for the enter animation

Header.Actions

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

PropTypeDefaultDescription
childrenReactNode—The action elements
classNamestring—Additional CSS classes
animationDelaynumber—Delay for the enter animation