# SectHead

> The $ command rule that opens a section, over a dashed line with meta on the right. The row wraps and each half stays whole.

Section: Content. Docs: https://entrepta.vercel.app/docs/components/sect-head

## Install

```bash
npx @entrepta/cli@latest add sect-head
```

Files: `content/sect-head.tsx`.
No npm packages.

## Usage

```tsx
import { SectHead } from "@/components/entrepta/sect-head"

<SectHead id="work" cmd="ls ./work --featured" meta="4 projects" />
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `cmd` | `string` | - | The command after the $ |
| `meta` | `ReactNode` | - | Right side |
| `id` | `string` | - | Put on the heading, for anchors |
| `as` | `"h2" \| "h3" \| "span"` | "h2" | Heading level |
