Docs, install panel


Install
npx shadcn add @klarhimmel/docs-installDetailsAbout, usage, props and more
An install panel: tabs of copyable code (CLI, Manual, Download), an optional "Uses" chip row, short labelled facts and actions. A tab with no code is left out.
Import
Import
- docs/install
- Category
- Documentation sections: headers, install panels, props tables, previews. New project? Set it up once: /get-started/installation.
Notes
When to use it
A tabbed install panel with copyable commands, a row of things the component uses, and a few labelled facts. Use docs-header for a single command and docs-prompt when the thing to copy is text for an AI.
Writing for it
- Tab labels hold 20 characters and each tab holds 400 characters of code, so one command per tab, such as CLI, pnpm or Manual. - Facts take a label of 30 characters and text of 240. Use them for what the install adds to the project and when to reach for the component. - The uses row holds up to 8 chips of 40 characters; name the dependencies a reader would otherwise have to find in the source.
Watch out for
A tab with no code is left out of the published block, and with no script running every remaining tab is shown stacked with its label. The Uses label is only drawn if there are chips, so an empty chip list hides it.
Pairs well with
Usage
The block in a page, with its default content (long lists shortened). Every prop is in the table below.
Props
The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | 'Name the step' | Text, up to 60 characters. |
tabs | { label, code }[] | 3 items | List of 1 to 4. Each item: label, code. |
usesLabel | string | 'Uses' | Text, up to 20 characters. |
uses | string[] | 3 items | List of up to 8. |
facts | { label, text }[] | 2 items | List of up to 3. Each item: label, text. |
actions | Link[] | 1 item | List of up to 3. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |