@vercel/geistdocs 2.6.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/cli/index.js +1 -1
  2. package/dist/internal/github-button.d.ts.map +1 -1
  3. package/dist/internal/github-button.js +2 -1
  4. package/dist/providers/public/components/badge.d.ts +13 -6
  5. package/dist/providers/public/components/badge.d.ts.map +1 -1
  6. package/dist/providers/public/components/badge.js +54 -9
  7. package/dist/providers/public/components/code-block-server.d.ts.map +1 -1
  8. package/dist/providers/public/components/code-block-server.js +13 -3
  9. package/dist/providers/public/components/filename-icon.d.ts +3 -0
  10. package/dist/providers/public/components/filename-icon.d.ts.map +1 -0
  11. package/dist/providers/public/components/filename-icon.js +13 -0
  12. package/dist/providers/public/components/input.d.ts +27 -0
  13. package/dist/providers/public/components/input.d.ts.map +1 -0
  14. package/dist/providers/public/components/input.js +27 -0
  15. package/dist/providers/public/components/theme-switcher.d.ts +5 -1
  16. package/dist/providers/public/components/theme-switcher.d.ts.map +1 -1
  17. package/dist/providers/public/components/theme-switcher.js +7 -3
  18. package/dist/providers/public/components/toggle.d.ts +26 -0
  19. package/dist/providers/public/components/toggle.d.ts.map +1 -0
  20. package/dist/providers/public/components/toggle.js +53 -0
  21. package/dist/providers/public/components/tooltip.d.ts +33 -7
  22. package/dist/providers/public/components/tooltip.d.ts.map +1 -1
  23. package/dist/providers/public/components/tooltip.js +19 -1
  24. package/dist/providers/public-assets/icons.d.ts +1 -0
  25. package/dist/providers/public-assets/icons.d.ts.map +1 -1
  26. package/dist/providers/public-assets/icons.js +1 -0
  27. package/docs/agents.md +25 -2
  28. package/docs/llms.txt +975 -14
  29. package/docs/manifest.json +211 -4
  30. package/docs/pages/components/badge.md +30 -0
  31. package/docs/pages/components/button.md +28 -0
  32. package/docs/pages/components/callout.md +28 -0
  33. package/docs/pages/components/code-block-tabs.md +49 -0
  34. package/docs/pages/components/code-block.md +26 -0
  35. package/docs/pages/components/collapsible.md +38 -0
  36. package/docs/pages/components/command-prompt.md +59 -0
  37. package/docs/pages/components/copy-prompt.md +25 -0
  38. package/docs/pages/components/details.md +37 -0
  39. package/docs/pages/components/dropdown-menu.md +43 -0
  40. package/docs/pages/components/image.md +36 -0
  41. package/docs/pages/components/index.md +49 -0
  42. package/docs/pages/components/input.md +35 -0
  43. package/docs/pages/components/link.md +28 -0
  44. package/docs/pages/components/mermaid.md +29 -0
  45. package/docs/pages/components/navigation-menu.md +50 -0
  46. package/docs/pages/components/popover.md +38 -0
  47. package/docs/pages/components/scroll-area.md +40 -0
  48. package/docs/pages/components/tabs.md +47 -0
  49. package/docs/pages/components/theme-switcher.md +32 -0
  50. package/docs/pages/components/toggle.md +37 -0
  51. package/docs/pages/components/tooltip.md +36 -0
  52. package/docs/pages/components/video.md +26 -0
  53. package/docs/pages/index.md +1 -1
  54. package/docs/pages/migration.md +4 -4
  55. package/docs/pages/syntax.md +7 -7
  56. package/docs/sitemap.md +24 -1
  57. package/package.json +29 -1
  58. package/public-foundation.css +1 -1
  59. package/template/components/geistdocs/toggle-demo.tsx +14 -0
  60. package/template/content/docs/components/badge.mdx +26 -0
  61. package/template/content/docs/components/button.mdx +24 -0
  62. package/template/content/docs/components/callout.mdx +24 -0
  63. package/template/content/docs/components/code-block-tabs.mdx +45 -0
  64. package/template/content/docs/components/code-block.mdx +22 -0
  65. package/template/content/docs/components/collapsible.mdx +34 -0
  66. package/template/content/docs/components/command-prompt.mdx +55 -0
  67. package/template/content/docs/components/copy-prompt.mdx +23 -0
  68. package/template/content/docs/components/details.mdx +33 -0
  69. package/template/content/docs/components/dropdown-menu.mdx +39 -0
  70. package/template/content/docs/components/image.mdx +32 -0
  71. package/template/content/docs/components/index.mdx +45 -0
  72. package/template/content/docs/components/input.mdx +31 -0
  73. package/template/content/docs/components/link.mdx +24 -0
  74. package/template/content/docs/components/mermaid.mdx +25 -0
  75. package/template/content/docs/components/meta.json +25 -1
  76. package/template/content/docs/components/navigation-menu.mdx +46 -0
  77. package/template/content/docs/components/popover.mdx +34 -0
  78. package/template/content/docs/components/scroll-area.mdx +36 -0
  79. package/template/content/docs/components/tabs.mdx +43 -0
  80. package/template/content/docs/components/theme-switcher.mdx +28 -0
  81. package/template/content/docs/components/toggle.mdx +33 -0
  82. package/template/content/docs/components/tooltip.mdx +32 -0
  83. package/template/content/docs/components/video.mdx +22 -0
  84. package/template/content/docs/index.mdx +1 -1
  85. package/template/content/docs/meta.json +1 -1
  86. package/template/content/docs/migration.mdx +4 -4
  87. package/template/content/docs/syntax.cn.mdx +3 -3
  88. package/template/content/docs/syntax.mdx +7 -7
  89. package/template/package.json +1 -1
@@ -72,11 +72,11 @@
72
72
  "url": "/docs/configuration"
73
73
  },
74
74
  {
75
- "description": "Learn about the supported markdown syntax and formatting options",
75
+ "description": "Author MDX content with supported components, Markdown syntax, and formatting options",
76
76
  "path": "pages/syntax.md",
77
77
  "source": "apps/template/content/docs/syntax.mdx",
78
- "summary": "Supported MDX components and syntax including tabs, text formatting, code blocks, line highlighting, and Mermaid diagrams.",
79
- "title": "Syntax",
78
+ "summary": "MDX component and authoring reference covering tabs, text formatting, code blocks, line highlighting, and Mermaid diagrams.",
79
+ "title": "MDX Components",
80
80
  "type": "reference",
81
81
  "url": "/docs/syntax"
82
82
  },
@@ -143,6 +143,78 @@
143
143
  "type": "conceptual",
144
144
  "url": "/docs/ask-ai"
145
145
  },
146
+ {
147
+ "description": "Render compact status and category labels",
148
+ "path": "pages/components/badge.md",
149
+ "source": "apps/template/content/docs/components/badge.mdx",
150
+ "summary": "Import Badge from the package component subpath for labels outside authored MDX.",
151
+ "title": "Badge",
152
+ "type": "reference",
153
+ "url": "/docs/components/badge"
154
+ },
155
+ {
156
+ "description": "Render buttons and link-style actions",
157
+ "path": "pages/components/button.md",
158
+ "source": "apps/template/content/docs/components/button.mdx",
159
+ "summary": "Use the provider-backed Button in application UI or directly in MDX.",
160
+ "title": "Button",
161
+ "type": "reference",
162
+ "url": "/docs/components/button"
163
+ },
164
+ {
165
+ "description": "Render notices with optional titles and descriptions",
166
+ "path": "pages/components/callout.md",
167
+ "source": "apps/template/content/docs/components/callout.mdx",
168
+ "summary": "Use Callout directly or compose its container, title, and description primitives.",
169
+ "title": "Callout",
170
+ "type": "reference",
171
+ "url": "/docs/components/callout"
172
+ },
173
+ {
174
+ "description": "Render highlighted code with filename and copy controls",
175
+ "path": "pages/components/code-block.md",
176
+ "source": "apps/template/content/docs/components/code-block.mdx",
177
+ "summary": "Use CodeBlock when code is highlighted or assembled outside authored Markdown fences.",
178
+ "title": "Code Block",
179
+ "type": "reference",
180
+ "url": "/docs/components/code-block"
181
+ },
182
+ {
183
+ "description": "Group multiple code examples in one tabbed surface",
184
+ "path": "pages/components/code-block-tabs.md",
185
+ "source": "apps/template/content/docs/components/code-block-tabs.mdx",
186
+ "summary": "Compose code-block tab lists, triggers, and panels outside authored MDX.",
187
+ "title": "Code Block Tabs",
188
+ "type": "reference",
189
+ "url": "/docs/components/code-block-tabs"
190
+ },
191
+ {
192
+ "description": "Show and hide expandable content regions",
193
+ "path": "pages/components/collapsible.md",
194
+ "source": "apps/template/content/docs/components/collapsible.mdx",
195
+ "summary": "Compose Collapsible, CollapsibleTrigger, and CollapsibleContent in custom React UI.",
196
+ "title": "Collapsible",
197
+ "type": "reference",
198
+ "url": "/docs/components/collapsible"
199
+ },
200
+ {
201
+ "description": "Render copyable commands and selectable command alternatives",
202
+ "path": "pages/components/command-prompt.md",
203
+ "source": "apps/template/content/docs/components/command-prompt.mdx",
204
+ "summary": "Compose the CommandPrompt primitives for application-owned install and setup commands.",
205
+ "title": "Command Prompt",
206
+ "type": "reference",
207
+ "url": "/docs/components/command-prompt"
208
+ },
209
+ {
210
+ "description": "Importable React components exposed by Geistdocs for application UI and documentation experiences",
211
+ "path": "pages/components/index.md",
212
+ "source": "apps/template/content/docs/components/index.mdx",
213
+ "summary": "Browse every component subpath exported by Geistdocs. These components can be imported into application code without relying on the default MDX component map.",
214
+ "title": "Components",
215
+ "type": "overview",
216
+ "url": "/docs/components/index"
217
+ },
146
218
  {
147
219
  "description": "Organize Geistdocs pages with ordered groups, separators, folder indexes, and nested navigation",
148
220
  "path": "pages/guides/nested-navigation.md",
@@ -152,6 +224,33 @@
152
224
  "type": "guide",
153
225
  "url": "/docs/guides/nested-navigation"
154
226
  },
227
+ {
228
+ "description": "Render copyable prompts for agents and language models",
229
+ "path": "pages/components/copy-prompt.md",
230
+ "source": "apps/template/content/docs/components/copy-prompt.mdx",
231
+ "summary": "Use CopyPrompt for reusable instructions that readers can send to an AI assistant.",
232
+ "title": "Copy Prompt",
233
+ "type": "reference",
234
+ "url": "/docs/components/copy-prompt"
235
+ },
236
+ {
237
+ "description": "Render styled native disclosure elements",
238
+ "path": "pages/components/details.md",
239
+ "source": "apps/template/content/docs/components/details.mdx",
240
+ "summary": "Compose Details and Summary for accessible browser-native disclosures.",
241
+ "title": "Details",
242
+ "type": "reference",
243
+ "url": "/docs/components/details"
244
+ },
245
+ {
246
+ "description": "Render accessible action and selection menus",
247
+ "path": "pages/components/dropdown-menu.md",
248
+ "source": "apps/template/content/docs/components/dropdown-menu.mdx",
249
+ "summary": "Compose DropdownMenu primitives for application-owned menus outside MDX.",
250
+ "title": "Dropdown Menu",
251
+ "type": "reference",
252
+ "url": "/docs/components/dropdown-menu"
253
+ },
155
254
  {
156
255
  "description": "Allow readers to contribute directly by editing documentation pages on GitHub",
157
256
  "path": "pages/edit-on-github.md",
@@ -170,6 +269,15 @@
170
269
  "type": "integration",
171
270
  "url": "/docs/feedback"
172
271
  },
272
+ {
273
+ "description": "Render optimized images with optional light and dark sources",
274
+ "path": "pages/components/image.md",
275
+ "source": "apps/template/content/docs/components/image.mdx",
276
+ "summary": "Use the Geistdocs Image wrapper for documentation-aware Next.js images.",
277
+ "title": "Image",
278
+ "type": "reference",
279
+ "url": "/docs/components/image"
280
+ },
173
281
  {
174
282
  "description": "Configure Mixedbread retrieval for a Geistdocs Ask AI chat and sync documentation to a site-specific Store",
175
283
  "path": "pages/mixedbread-retrieval.md",
@@ -179,6 +287,15 @@
179
287
  "type": "guide",
180
288
  "url": "/docs/mixedbread-retrieval"
181
289
  },
290
+ {
291
+ "description": "Render accessible provider-backed text inputs",
292
+ "path": "pages/components/input.md",
293
+ "source": "apps/template/content/docs/components/input.mdx",
294
+ "summary": "Use Input for text entry in custom documentation and application interfaces.",
295
+ "title": "Input",
296
+ "type": "reference",
297
+ "url": "/docs/components/input"
298
+ },
182
299
  {
183
300
  "description": "Add multi-language support to your documentation site",
184
301
  "path": "pages/internationalization.md",
@@ -197,6 +314,33 @@
197
314
  "type": "conceptual",
198
315
  "url": "/docs/llms-txt"
199
316
  },
317
+ {
318
+ "description": "Render Mermaid diagrams from chart source",
319
+ "path": "pages/components/mermaid.md",
320
+ "source": "apps/template/content/docs/components/mermaid.mdx",
321
+ "summary": "Use Mermaid directly when diagram source is assembled outside an MDX Mermaid fence.",
322
+ "title": "Mermaid",
323
+ "type": "reference",
324
+ "url": "/docs/components/mermaid"
325
+ },
326
+ {
327
+ "description": "Render styled anchors with browser-native navigation",
328
+ "path": "pages/components/link.md",
329
+ "source": "apps/template/content/docs/components/link.mdx",
330
+ "summary": "Use NativeDocsLink where Next.js client navigation is not appropriate.",
331
+ "title": "Native Link",
332
+ "type": "reference",
333
+ "url": "/docs/components/link"
334
+ },
335
+ {
336
+ "description": "Render accessible navigation links and flyout content",
337
+ "path": "pages/components/navigation-menu.md",
338
+ "source": "apps/template/content/docs/components/navigation-menu.mdx",
339
+ "summary": "Compose NavigationMenu primitives for custom product and documentation navigation.",
340
+ "title": "Navigation Menu",
341
+ "type": "reference",
342
+ "url": "/docs/components/navigation-menu"
343
+ },
200
344
  {
201
345
  "description": "Allow users to continue conversations in their preferred AI chat platform with a single click",
202
346
  "path": "pages/open-in-chat.md",
@@ -206,6 +350,15 @@
206
350
  "type": "conceptual",
207
351
  "url": "/docs/open-in-chat"
208
352
  },
353
+ {
354
+ "description": "Render anchored floating content",
355
+ "path": "pages/components/popover.md",
356
+ "source": "apps/template/content/docs/components/popover.mdx",
357
+ "summary": "Compose Popover, PopoverTrigger, and PopoverContent outside MDX.",
358
+ "title": "Popover",
359
+ "type": "reference",
360
+ "url": "/docs/components/popover"
361
+ },
209
362
  {
210
363
  "description": "Keep users updated with an automatically generated RSS feed for your documentation",
211
364
  "path": "pages/rss.md",
@@ -215,6 +368,15 @@
215
368
  "type": "conceptual",
216
369
  "url": "/docs/rss"
217
370
  },
371
+ {
372
+ "description": "Render styled overflow regions and scrollbars",
373
+ "path": "pages/components/scroll-area.md",
374
+ "source": "apps/template/content/docs/components/scroll-area.mdx",
375
+ "summary": "Compose ScrollArea and ScrollBar for constrained custom interfaces.",
376
+ "title": "Scroll Area",
377
+ "type": "reference",
378
+ "url": "/docs/components/scroll-area"
379
+ },
218
380
  {
219
381
  "description": "Render numbered step-by-step instructions from Markdown headings or the Steps and Step components",
220
382
  "path": "pages/components/steps.md",
@@ -233,6 +395,51 @@
233
395
  "type": "reference",
234
396
  "url": "/docs/table-of-contents"
235
397
  },
398
+ {
399
+ "description": "Render provider-backed tab navigation and content panels",
400
+ "path": "pages/components/tabs.md",
401
+ "source": "apps/template/content/docs/components/tabs.mdx",
402
+ "summary": "Use Tabs for navigation-only controls or TabsWithChildren and TabContent for mounted content panels.",
403
+ "title": "Tabs",
404
+ "type": "reference",
405
+ "url": "/docs/components/tabs"
406
+ },
407
+ {
408
+ "description": "Select the system, light, or dark display theme",
409
+ "path": "pages/components/theme-switcher.md",
410
+ "source": "apps/template/content/docs/components/theme-switcher.mdx",
411
+ "summary": "Use ThemeSwitcher in custom navigation, settings, and footer UI.",
412
+ "title": "Theme Switcher",
413
+ "type": "reference",
414
+ "url": "/docs/components/theme-switcher"
415
+ },
416
+ {
417
+ "description": "Render controlled boolean controls",
418
+ "path": "pages/components/toggle.md",
419
+ "source": "apps/template/content/docs/components/toggle.mdx",
420
+ "summary": "Toggle is the provider-backed replacement for the former Switch export.",
421
+ "title": "Toggle",
422
+ "type": "reference",
423
+ "url": "/docs/components/toggle"
424
+ },
425
+ {
426
+ "description": "Add contextual labels on hover and focus",
427
+ "path": "pages/components/tooltip.md",
428
+ "source": "apps/template/content/docs/components/tooltip.mdx",
429
+ "summary": "Wrap controls with provider-backed Tooltip content outside MDX.",
430
+ "title": "Tooltip",
431
+ "type": "reference",
432
+ "url": "/docs/components/tooltip"
433
+ },
434
+ {
435
+ "description": "Render responsive video playback in documentation content",
436
+ "path": "pages/components/video.md",
437
+ "source": "apps/template/content/docs/components/video.mdx",
438
+ "summary": "Use Video for embedded video sources inside React UI or authored MDX.",
439
+ "title": "Video",
440
+ "type": "reference",
441
+ "url": "/docs/components/video"
442
+ },
236
443
  {
237
444
  "description": "Expose documentation search and page reading to browser agents.",
238
445
  "path": "pages/webmcp.md",
@@ -242,5 +449,5 @@
242
449
  }
243
450
  ],
244
451
  "source": "apps/template/content/docs",
245
- "version": "2.6.1"
452
+ "version": "2.7.0"
246
453
  }
@@ -0,0 +1,30 @@
1
+ ---
2
+ title: Badge
3
+ description: Render compact status and category labels
4
+ type: reference
5
+ summary: Import Badge from the package component subpath for labels outside authored MDX.
6
+ url: /docs/components/badge
7
+ source: apps/template/content/docs/components/badge.mdx
8
+ related:
9
+ - /docs/components
10
+ ---
11
+
12
+ # Badge
13
+
14
+ import { Badge } from "@vercel/geistdocs/components/badge";
15
+
16
+ <div className="not-prose my-6 flex min-h-32 items-center justify-center rounded-lg border border-gray-400 bg-background-100 p-6">
17
+ <Badge variant="blue">New</Badge>
18
+ </div>
19
+
20
+ Import `Badge` from the selected Geistdocs package:
21
+
22
+ ```tsx
23
+ import { Badge } from "@vercel/geistdocs/components/badge";
24
+
25
+ export function Status() {
26
+ return <Badge variant="blue">New</Badge>;
27
+ }
28
+ ```
29
+
30
+ The public variant supports `gray`, `blue`, `red`, `amber`, and `green` tones. The private package resolves the component through Geistcn.
@@ -0,0 +1,28 @@
1
+ ---
2
+ title: Button
3
+ description: Render buttons and link-style actions
4
+ type: reference
5
+ summary: Use the provider-backed Button in application UI or directly in MDX.
6
+ url: /docs/components/button
7
+ source: apps/template/content/docs/components/button.mdx
8
+ related:
9
+ - /docs/components
10
+ ---
11
+
12
+ # Button
13
+
14
+ import { Button } from "@vercel/geistdocs/components/button";
15
+
16
+ <div className="not-prose my-6 flex min-h-32 items-center justify-center rounded-lg border border-gray-400 bg-background-100 p-6">
17
+ <Button variant="secondary">Continue</Button>
18
+ </div>
19
+
20
+ ```tsx
21
+ import { Button } from "@vercel/geistdocs/components/button";
22
+
23
+ export function Actions() {
24
+ return <Button variant="secondary">Continue</Button>;
25
+ }
26
+ ```
27
+
28
+ `Button` supports native buttons, anchors, and internal localized links. It is also included in the default MDX component map.
@@ -0,0 +1,28 @@
1
+ ---
2
+ title: Callout
3
+ description: Render notices with optional titles and descriptions
4
+ type: reference
5
+ summary: Use Callout directly or compose its container, title, and description primitives.
6
+ url: /docs/components/callout
7
+ source: apps/template/content/docs/components/callout.mdx
8
+ related:
9
+ - /docs/components
10
+ ---
11
+
12
+ # Callout
13
+
14
+ import { Callout } from "@vercel/geistdocs/components/callout";
15
+
16
+ <div className="not-prose my-6 rounded-lg border border-gray-400 bg-background-100 p-6">
17
+ > Restart the dev server after changing configuration.
18
+ </div>
19
+
20
+ ```tsx
21
+ import { Callout } from "@vercel/geistdocs/components/callout";
22
+
23
+ export function Notice() {
24
+ return <Callout title="Note">Restart the dev server after changing configuration.</Callout>;
25
+ }
26
+ ```
27
+
28
+ The subpath also exports `CalloutContainer`, `CalloutTitle`, and `CalloutDescription`. These components are included in the default MDX component map.
@@ -0,0 +1,49 @@
1
+ ---
2
+ title: Code Block Tabs
3
+ description: Group multiple code examples in one tabbed surface
4
+ type: reference
5
+ summary: Compose code-block tab lists, triggers, and panels outside authored MDX.
6
+ url: /docs/components/code-block-tabs
7
+ source: apps/template/content/docs/components/code-block-tabs.mdx
8
+ related:
9
+ - /docs/components
10
+ - /docs/components/code-block
11
+ - /docs/syntax
12
+ ---
13
+
14
+ # Code Block Tabs
15
+
16
+ import { CodeBlock } from "@vercel/geistdocs/components/code-block";
17
+ import {
18
+ CodeBlockTab,
19
+ CodeBlockTabs,
20
+ CodeBlockTabsList,
21
+ CodeBlockTabsTrigger,
22
+ } from "@vercel/geistdocs/components/code-block-tabs";
23
+
24
+ <div className="not-prose my-6">
25
+ <CodeBlockTabs defaultValue="pnpm">
26
+ <CodeBlockTabsList>
27
+ <CodeBlockTabsTrigger value="pnpm">pnpm</CodeBlockTabsTrigger>
28
+ <CodeBlockTabsTrigger value="npm">npm</CodeBlockTabsTrigger>
29
+ </CodeBlockTabsList>
30
+ <CodeBlockTab value="pnpm">
31
+ <CodeBlock title="Terminal">pnpm add @vercel/geistdocs</CodeBlock>
32
+ </CodeBlockTab>
33
+ <CodeBlockTab value="npm">
34
+ <CodeBlock title="Terminal">npm install @vercel/geistdocs</CodeBlock>
35
+ </CodeBlockTab>
36
+ </CodeBlockTabs>
37
+ </div>
38
+
39
+ ```tsx
40
+ import {
41
+ CodeBlockTab,
42
+ CodeBlockTabs,
43
+ CodeBlockTabsList,
44
+ CodeBlockTabsTrigger,
45
+ CompactCodeBlockTabs,
46
+ } from "@vercel/geistdocs/components/code-block-tabs";
47
+ ```
48
+
49
+ The same components are available without imports in authored MDX.
@@ -0,0 +1,26 @@
1
+ ---
2
+ title: Code Block
3
+ description: Render highlighted code with filename and copy controls
4
+ type: reference
5
+ summary: Use CodeBlock when code is highlighted or assembled outside authored Markdown fences.
6
+ url: /docs/components/code-block
7
+ source: apps/template/content/docs/components/code-block.mdx
8
+ related:
9
+ - /docs/components
10
+ - /docs/components/code-block-tabs
11
+ - /docs/syntax
12
+ ---
13
+
14
+ # Code Block
15
+
16
+ import { CodeBlock } from "@vercel/geistdocs/components/code-block";
17
+
18
+ <div className="not-prose my-6">
19
+ <CodeBlock title="example.ts">{'export const enabled = true;'}</CodeBlock>
20
+ </div>
21
+
22
+ ```tsx
23
+ import { CodeBlock } from "@vercel/geistdocs/components/code-block";
24
+ ```
25
+
26
+ Pass a `title` to show header chrome with a filename-aware icon and copy control. Markdown code fences use `CodeBlock` automatically through the default MDX map.
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: Collapsible
3
+ description: Show and hide expandable content regions
4
+ type: reference
5
+ summary: Compose Collapsible, CollapsibleTrigger, and CollapsibleContent in custom React UI.
6
+ url: /docs/components/collapsible
7
+ source: apps/template/content/docs/components/collapsible.mdx
8
+ related:
9
+ - /docs/components
10
+ - /docs/components/details
11
+ ---
12
+
13
+ # Collapsible
14
+
15
+ import {
16
+ Collapsible,
17
+ CollapsibleContent,
18
+ CollapsibleTrigger,
19
+ } from "@vercel/geistdocs/components/collapsible";
20
+
21
+ <div className="not-prose my-6 flex min-h-32 items-center justify-center rounded-lg border border-gray-400 bg-background-100 p-6">
22
+ <Collapsible className="w-full max-w-sm" defaultOpen>
23
+ <CollapsibleTrigger className="font-medium">Advanced options</CollapsibleTrigger>
24
+ <CollapsibleContent className="pt-3 text-gray-900">
25
+ Configure optional behavior here.
26
+ </CollapsibleContent>
27
+ </Collapsible>
28
+ </div>
29
+
30
+ ```tsx
31
+ import {
32
+ Collapsible,
33
+ CollapsibleContent,
34
+ CollapsibleTrigger,
35
+ } from "@vercel/geistdocs/components/collapsible";
36
+ ```
37
+
38
+ Use the native [Details](/docs/components/details) component when browser-native disclosure behavior is sufficient.
@@ -0,0 +1,59 @@
1
+ ---
2
+ title: Command Prompt
3
+ description: Render copyable commands and selectable command alternatives
4
+ type: reference
5
+ summary: Compose the CommandPrompt primitives for application-owned install and setup commands.
6
+ url: /docs/components/command-prompt
7
+ source: apps/template/content/docs/components/command-prompt.mdx
8
+ related:
9
+ - /docs/components
10
+ - /docs/components/copy-prompt
11
+ ---
12
+
13
+ # Command Prompt
14
+
15
+ import {
16
+ CommandPromptContent,
17
+ CommandPromptCopy,
18
+ CommandPromptList,
19
+ CommandPromptPrefix,
20
+ CommandPromptRoot,
21
+ CommandPromptSurface,
22
+ CommandPromptTrigger,
23
+ CommandPromptTriggerDivider,
24
+ CommandPromptViewport,
25
+ } from "@vercel/geistdocs/components/command-prompt";
26
+
27
+ <div className="not-prose my-6 flex min-h-32 items-center justify-center rounded-lg border border-gray-400 bg-background-100 p-6">
28
+ <CommandPromptRoot defaultValue="pnpm">
29
+ <CommandPromptList>
30
+ <CommandPromptTrigger value="pnpm">pnpm</CommandPromptTrigger>
31
+ <CommandPromptTriggerDivider />
32
+ <CommandPromptTrigger value="npm">npm</CommandPromptTrigger>
33
+ </CommandPromptList>
34
+ <CommandPromptSurface>
35
+ <CommandPromptPrefix>$</CommandPromptPrefix>
36
+ <CommandPromptViewport>
37
+ <CommandPromptContent value="pnpm">pnpm add @vercel/geistdocs</CommandPromptContent>
38
+ <CommandPromptContent value="npm">npm install @vercel/geistdocs</CommandPromptContent>
39
+ </CommandPromptViewport>
40
+ <CommandPromptCopy aria-label="Copy command" />
41
+ </CommandPromptSurface>
42
+ </CommandPromptRoot>
43
+ </div>
44
+
45
+ ```tsx
46
+ import {
47
+ CommandPromptContent,
48
+ CommandPromptCopy,
49
+ CommandPromptList,
50
+ CommandPromptPrefix,
51
+ CommandPromptRoot,
52
+ CommandPromptSurface,
53
+ CommandPromptTrigger,
54
+ CommandPromptTriggerDivider,
55
+ CommandPromptViewport,
56
+ } from "@vercel/geistdocs/components/command-prompt";
57
+ ```
58
+
59
+ `CommandPromptRoot` owns the active command and copy state. Compose the remaining primitives within it to build a single command or a selectable package-manager list.
@@ -0,0 +1,25 @@
1
+ ---
2
+ title: Copy Prompt
3
+ description: Render copyable prompts for agents and language models
4
+ type: reference
5
+ summary: Use CopyPrompt for reusable instructions that readers can send to an AI assistant.
6
+ url: /docs/components/copy-prompt
7
+ source: apps/template/content/docs/components/copy-prompt.mdx
8
+ related:
9
+ - /docs/components
10
+ - /docs/components/command-prompt
11
+ ---
12
+
13
+ # Copy Prompt
14
+
15
+ import { CopyPrompt } from "@vercel/geistdocs/components/copy-prompt";
16
+
17
+ ```tsx
18
+ import { CopyPrompt } from "@vercel/geistdocs/components/copy-prompt";
19
+
20
+ export function ReviewPrompt() {
21
+ return <CopyPrompt text="Review this project and propose the safest migration plan." />;
22
+ }
23
+ ```
24
+
25
+ `CopyPrompt` is also included in the default MDX component map.
@@ -0,0 +1,37 @@
1
+ ---
2
+ title: Details
3
+ description: Render styled native disclosure elements
4
+ type: reference
5
+ summary: Compose Details and Summary for accessible browser-native disclosures.
6
+ url: /docs/components/details
7
+ source: apps/template/content/docs/components/details.mdx
8
+ related:
9
+ - /docs/components
10
+ - /docs/components/collapsible
11
+ ---
12
+
13
+ # Details
14
+
15
+ import { Details, Summary } from "@vercel/geistdocs/components/details";
16
+
17
+ <div className="not-prose my-6 min-h-32 rounded-lg border border-gray-400 bg-background-100 p-6">
18
+ <Details open>
19
+ <Summary>Advanced options</Summary>
20
+ Configure optional behavior here.
21
+ </Details>
22
+ </div>
23
+
24
+ ```tsx
25
+ import { Details, Summary } from "@vercel/geistdocs/components/details";
26
+
27
+ export function Disclosure() {
28
+ return (
29
+ <Details>
30
+ <Summary>Advanced options</Summary>
31
+ Configure optional behavior here.
32
+ </Details>
33
+ );
34
+ }
35
+ ```
36
+
37
+ `Details` and `Summary` are also included in the default MDX component map.
@@ -0,0 +1,43 @@
1
+ ---
2
+ title: Dropdown Menu
3
+ description: Render accessible action and selection menus
4
+ type: reference
5
+ summary: Compose DropdownMenu primitives for application-owned menus outside MDX.
6
+ url: /docs/components/dropdown-menu
7
+ source: apps/template/content/docs/components/dropdown-menu.mdx
8
+ related:
9
+ - /docs/components
10
+ - /docs/components/popover
11
+ ---
12
+
13
+ # Dropdown Menu
14
+
15
+ import {
16
+ DropdownMenu,
17
+ DropdownMenuContent,
18
+ DropdownMenuItem,
19
+ DropdownMenuTrigger,
20
+ } from "@vercel/geistdocs/components/dropdown-menu";
21
+
22
+ <div className="not-prose my-6 flex min-h-32 items-center justify-center rounded-lg border border-gray-400 bg-background-100 p-6">
23
+ <DropdownMenu>
24
+ <DropdownMenuTrigger className="h-8 rounded-md border border-gray-400 bg-background-100 px-3">
25
+ Open menu
26
+ </DropdownMenuTrigger>
27
+ <DropdownMenuContent>
28
+ <DropdownMenuItem>Edit</DropdownMenuItem>
29
+ <DropdownMenuItem>Duplicate</DropdownMenuItem>
30
+ </DropdownMenuContent>
31
+ </DropdownMenu>
32
+ </div>
33
+
34
+ ```tsx
35
+ import {
36
+ DropdownMenu,
37
+ DropdownMenuContent,
38
+ DropdownMenuItem,
39
+ DropdownMenuTrigger,
40
+ } from "@vercel/geistdocs/components/dropdown-menu";
41
+ ```
42
+
43
+ The subpath also exports label, separator, checkbox, radio, and nested submenu primitives.