Directory, template info


Install
npx shadcn add @klarhimmel/directory-template-infoDetailsAbout, usage, props and more
What a template contains: the pages it includes (name and path), the blocks it uses as chips, and a paragraph on how to customise it.
Import
Import
- directory/template-info
- Category
- Catalogue pages: headers with filters, card grids, full-width previews. New project? Set it up once: /get-started/installation.
Notes
When to use it
A three-part panel that says what a template contains: its pages, the blocks it uses and how to customise it. Put it under directory-preview on a template page.
Writing for it
- List 1 to 10 pages with a name of 40 characters and a path of 80. Write the path as a reader would see it, such as /pricing. - Blocks are chips of 60 characters, up to 16. Use the block ids so a reader can search for them. - The customise paragraph holds 400 characters. Say which files or settings to edit first, and give each of the three section titles 40 characters or less.
Watch out for
This block has no shared heading; each of the three columns has its own h2, and the section is labelled Template details. If the blocks list is empty the column keeps its heading with nothing under 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 |
|---|---|---|---|
pagesTitle | string | 'Name the page list' | Text, up to 40 characters. |
pages | { name, path }[] | 5 items | List of 1 to 10. Each item: name, path. |
blocksTitle | string | 'Name the blocks' | Text, up to 40 characters. |
blocks | string[] | 9 items | List of up to 16. |
customizeTitle | string | 'Name the how-to' | Text, up to 40 characters. |
customize | string | 'Say in two or three sentences how t…' | Text, up to 400 characters. |