---
site: ui.zyx.tw
url: https://ui.zyx.tw/hero
title: Hero
description: "A page title at hero size with an optional muted subtitle, entering as the page's first two rows."
---

# Hero

A page title at hero size with an optional muted subtitle, entering as the page's first two rows.

Group: Layout.

## Install

```bash
bunx shadcn@latest init https://ui.zyx.tw/r/base.json
bunx shadcn@latest add @zyx1121/hero
```

The first line sets a project up on the base; skip it if the project already has it.

## Item

### Hero (`hero`)

A page title at hero size with an optional muted subtitle, entering as the page's first two rows.

- Use when: The title block at the top of a page.
- Not for: Section headings inside a page; use section-title.
- Related: [section-title](https://ui.zyx.tw/section-title.md), [rows](https://ui.zyx.tw/rows.md)
- Categories: layout, typography
- Install: `bunx shadcn@latest add https://ui.zyx.tw/r/hero.json`
- JSON: [hero.json](https://ui.zyx.tw/r/hero.json)
- Page: [https://ui.zyx.tw/hero](https://ui.zyx.tw/hero) ([Markdown](https://ui.zyx.tw/hero.md))
- Registry dependencies: `https://ui.zyx.tw/r/utils.json`, `https://ui.zyx.tw/r/layout.json`

## More

- [Index](https://ui.zyx.tw/index.md): every item
- [Agent instructions](https://ui.zyx.tw/agent-instructions.md): the call order and the rules
- [DESIGN.md](https://github.com/zyx1121/www.zyx.tw/blob/main/apps/ui/DESIGN.md): the design contract
