---
title: "Page header | Free React & Tailwind Blocks Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/blocks/page-header"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/blocks/page-header.tsx"
install_command: "npx motion-ui-skill add page-header"
dependencies: ["@radix-ui/react-dropdown-menu","@radix-ui/react-tabs","clsx","lucide-react","motion","react","react-dom","tailwind-merge"]
category: "blocks"
subcategory: "blocks"
---

# Page header

> A project page header that folds into a compact bar as you scroll, with tabs whose counts roll.

## Install

```bash
npx motion-ui-skill add page-header
```

## Dependencies

- `@radix-ui/react-dropdown-menu`
- `@radix-ui/react-tabs`
- `clsx`
- `lucide-react`
- `motion`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import { PageHeader as PageHeader } from "@/components/blocks/page-header";

export function Example() {
  return (
    <div className="p-6">
      <PageHeader />
    </div>
  );
}
```

## Source Files

- [components/blocks/page-header.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/blocks/page-header.tsx)
- [components/blocks/page-header.module.css](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/blocks/page-header.module.css)
- [lib/motion-tokens.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/motion-tokens.ts)
- [lib/portal.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/portal.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
