doccupine 0.0.134 → 0.0.136
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.
- package/README.md +11 -9
- package/dist/index.js +282 -46
- package/dist/lib/metadata.d.ts +5 -0
- package/dist/lib/metadata.js +15 -4
- package/dist/lib/rss.d.ts +24 -0
- package/dist/lib/rss.js +137 -0
- package/dist/lib/structures.js +22 -2
- package/dist/templates/app/rssRoute.d.ts +11 -0
- package/dist/templates/app/rssRoute.js +30 -0
- package/dist/templates/components/Docs.d.ts +1 -1
- package/dist/templates/components/Docs.js +5 -2
- package/dist/templates/components/MDXComponents.d.ts +1 -1
- package/dist/templates/components/MDXComponents.js +29 -0
- package/dist/templates/components/SideBar.d.ts +1 -1
- package/dist/templates/components/SideBar.js +5 -2
- package/dist/templates/components/layout/ActionBar.d.ts +1 -1
- package/dist/templates/components/layout/ActionBar.js +44 -13
- package/dist/templates/components/layout/ApiPlayground.d.ts +1 -1
- package/dist/templates/components/layout/ApiPlayground.js +20 -28
- package/dist/templates/components/layout/Badge.d.ts +1 -0
- package/dist/templates/components/layout/Badge.js +455 -0
- package/dist/templates/components/layout/DocsComponents.d.ts +1 -1
- package/dist/templates/components/layout/DocsComponents.js +5 -30
- package/dist/templates/components/layout/Prompt.d.ts +1 -0
- package/dist/templates/components/layout/Prompt.js +149 -0
- package/dist/templates/components/layout/Tooltip.d.ts +1 -0
- package/dist/templates/components/layout/Tooltip.js +222 -0
- package/dist/templates/components/layout/Tree.d.ts +1 -0
- package/dist/templates/components/layout/Tree.js +322 -0
- package/dist/templates/components/layout/TreeData.d.ts +1 -0
- package/dist/templates/components/layout/TreeData.js +131 -0
- package/dist/templates/components/layout/Update.d.ts +1 -1
- package/dist/templates/components/layout/Update.js +3 -0
- package/dist/templates/lib/rss.d.ts +1 -0
- package/dist/templates/lib/rss.js +83 -0
- package/dist/templates/mdx/accordion.mdx.d.ts +1 -1
- package/dist/templates/mdx/accordion.mdx.js +1 -1
- package/dist/templates/mdx/api-playground.mdx.d.ts +1 -1
- package/dist/templates/mdx/api-playground.mdx.js +1 -1
- package/dist/templates/mdx/badges.mdx.d.ts +1 -0
- package/dist/templates/mdx/badges.mdx.js +237 -0
- package/dist/templates/mdx/buttons.mdx.d.ts +1 -1
- package/dist/templates/mdx/buttons.mdx.js +1 -1
- package/dist/templates/mdx/callouts.mdx.d.ts +1 -1
- package/dist/templates/mdx/callouts.mdx.js +1 -1
- package/dist/templates/mdx/cards.mdx.d.ts +1 -1
- package/dist/templates/mdx/cards.mdx.js +1 -1
- package/dist/templates/mdx/color-swatches.mdx.d.ts +1 -1
- package/dist/templates/mdx/color-swatches.mdx.js +1 -1
- package/dist/templates/mdx/columns.mdx.d.ts +1 -1
- package/dist/templates/mdx/columns.mdx.js +1 -1
- package/dist/templates/mdx/components.mdx.d.ts +1 -1
- package/dist/templates/mdx/components.mdx.js +14 -2
- package/dist/templates/mdx/fields.mdx.d.ts +1 -1
- package/dist/templates/mdx/fields.mdx.js +1 -1
- package/dist/templates/mdx/frames.mdx.d.ts +1 -1
- package/dist/templates/mdx/frames.mdx.js +1 -1
- package/dist/templates/mdx/icons.mdx.d.ts +1 -1
- package/dist/templates/mdx/icons.mdx.js +1 -1
- package/dist/templates/mdx/image-and-embeds.mdx.d.ts +1 -1
- package/dist/templates/mdx/image-and-embeds.mdx.js +1 -1
- package/dist/templates/mdx/images-and-embeds.mdx.d.ts +1 -0
- package/dist/templates/mdx/images-and-embeds.mdx.js +118 -0
- package/dist/templates/mdx/mermaid.mdx.d.ts +1 -1
- package/dist/templates/mdx/mermaid.mdx.js +1 -1
- package/dist/templates/mdx/navigation.mdx.d.ts +1 -1
- package/dist/templates/mdx/navigation.mdx.js +5 -1
- package/dist/templates/mdx/prompt.mdx.d.ts +1 -0
- package/dist/templates/mdx/prompt.mdx.js +69 -0
- package/dist/templates/mdx/steps.mdx.d.ts +1 -1
- package/dist/templates/mdx/steps.mdx.js +1 -1
- package/dist/templates/mdx/tabs.mdx.d.ts +1 -1
- package/dist/templates/mdx/tabs.mdx.js +1 -1
- package/dist/templates/mdx/tooltips.mdx.d.ts +1 -0
- package/dist/templates/mdx/tooltips.mdx.js +57 -0
- package/dist/templates/mdx/tree.mdx.d.ts +1 -0
- package/dist/templates/mdx/tree.mdx.js +158 -0
- package/dist/templates/mdx/update.mdx.d.ts +1 -1
- package/dist/templates/mdx/update.mdx.js +42 -2
- package/dist/templates/package.js +1 -1
- package/package.json +2 -2
- package/dist/templates/mdx/platform/external-links.mdx.d.ts +0 -1
- package/dist/templates/mdx/platform/external-links.mdx.js +0 -47
- package/dist/templates/utils/apiAnchors.d.ts +0 -1
- package/dist/templates/utils/apiAnchors.js +0 -39
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const badgesMdxTemplate = "---\ntitle: \"Badges\"\ndescription: \"Highlight statuses, version labels, and metadata inline with colored badges.\"\ndate: \"2026-07-27\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 12\n---\n# Badges\n\nHighlight statuses, version labels, and metadata with small colored badges - inline within text or standing on their own.\n\n## Basic badge\n\nYou can use the Badge component directly within your MDX files without any import:\n\n```html\n<Badge>Badge</Badge>\n```\n\n<Badge>Badge</Badge>\n\n## Colors\n\nThe `color` property selects one of eleven variants to convey different meanings:\n\n```html\n<Badge color=\"gray\">Badge</Badge>\n<Badge color=\"blue\">Badge</Badge>\n<Badge color=\"green\">Badge</Badge>\n<Badge color=\"yellow\">Badge</Badge>\n<Badge color=\"orange\">Badge</Badge>\n<Badge color=\"red\">Badge</Badge>\n<Badge color=\"purple\">Badge</Badge>\n<Badge color=\"white\">Badge</Badge>\n<Badge color=\"surface\">Badge</Badge>\n<Badge color=\"white-destructive\">Badge</Badge>\n<Badge color=\"surface-destructive\">Badge</Badge>\n```\n\n<Badge color=\"gray\">Badge</Badge>\n<Badge color=\"blue\">Badge</Badge>\n<Badge color=\"green\">Badge</Badge>\n<Badge color=\"yellow\">Badge</Badge>\n<Badge color=\"orange\">Badge</Badge>\n<Badge color=\"red\">Badge</Badge>\n<Badge color=\"purple\">Badge</Badge>\n<Badge color=\"white\">Badge</Badge>\n<Badge color=\"surface\">Badge</Badge>\n<Badge color=\"white-destructive\">Badge</Badge>\n<Badge color=\"surface-destructive\">Badge</Badge>\n\n## Sizes\n\nFour sizes match different content hierarchies:\n\n```html\n<Badge size=\"xs\">Badge</Badge>\n<Badge size=\"sm\">Badge</Badge>\n<Badge size=\"md\">Badge</Badge>\n<Badge size=\"lg\">Badge</Badge>\n```\n\n<Badge size=\"xs\">Badge</Badge>\n<Badge size=\"sm\">Badge</Badge>\n<Badge size=\"md\">Badge</Badge>\n<Badge size=\"lg\">Badge</Badge>\n\n## Shapes\n\nChoose between rounded corners and a pill shape:\n\n```html\n<Badge shape=\"rounded\">Badge</Badge>\n<Badge shape=\"pill\">Badge</Badge>\n```\n\n<Badge shape=\"rounded\">Badge</Badge>\n<Badge shape=\"pill\">Badge</Badge>\n\n## Icons\n\nAdd a [Lucide](https://lucide.dev/icons) icon (kebab-case name) for extra context. Unknown names render nothing, so a typo never breaks the page:\n\n```html\n<Badge icon=\"circle-check\" color=\"green\">Passing</Badge>\n<Badge icon=\"clock\" color=\"orange\">Pending</Badge>\n<Badge icon=\"ban\" color=\"red\">Blocked</Badge>\n```\n\n<Badge icon=\"circle-check\" color=\"green\">Passing</Badge>\n<Badge icon=\"clock\" color=\"orange\">Pending</Badge>\n<Badge icon=\"ban\" color=\"red\">Blocked</Badge>\n\n## Stroke variant\n\nSet `stroke` for an outline instead of a filled background:\n\n```html\n<Badge stroke color=\"blue\">Badge</Badge>\n<Badge stroke color=\"green\">Badge</Badge>\n<Badge stroke color=\"orange\">Badge</Badge>\n<Badge stroke color=\"red\">Badge</Badge>\n```\n\n<Badge stroke color=\"blue\">Badge</Badge>\n<Badge stroke color=\"green\">Badge</Badge>\n<Badge stroke color=\"orange\">Badge</Badge>\n<Badge stroke color=\"red\">Badge</Badge>\n\n## Solid variant\n\nSet `solid` for a strong filled background with contrasting text:\n\n```html\n<Badge solid color=\"blue\">Badge</Badge>\n<Badge solid color=\"green\">Badge</Badge>\n<Badge solid color=\"red\">Badge</Badge>\n<Badge solid color=\"purple\">Badge</Badge>\n```\n\n<Badge solid color=\"blue\">Badge</Badge>\n<Badge solid color=\"green\">Badge</Badge>\n<Badge solid color=\"red\">Badge</Badge>\n<Badge solid color=\"purple\">Badge</Badge>\n\n## Semantic colors\n\nThe `info`, `success`, `warning`, and `error` colors come from your theme rather than the fixed palette, so they follow your `theme.json` and the light/dark toggle. They support the same `stroke` and `solid` variations:\n\n```html\n<Badge color=\"info\">Badge</Badge>\n<Badge color=\"success\">Badge</Badge>\n<Badge color=\"warning\">Badge</Badge>\n<Badge color=\"error\">Badge</Badge>\n<Badge solid color=\"info\">Badge</Badge>\n<Badge solid color=\"success\">Badge</Badge>\n```\n\n<Badge color=\"info\">Badge</Badge>\n<Badge color=\"success\">Badge</Badge>\n<Badge color=\"warning\">Badge</Badge>\n<Badge color=\"error\">Badge</Badge>\n<Badge solid color=\"info\">Badge</Badge>\n<Badge solid color=\"success\">Badge</Badge>\n\n## HTTP method badges\n\nSet `mono` for a monospace, uppercase label. Combining `mono`, `solid`, and the semantic colors gives the method chips Doccupine itself uses in the sidebar navigation and the API playground:\n\n```html\n<Badge mono solid color=\"info\" size=\"sm\">GET</Badge>\n<Badge mono solid color=\"success\" size=\"sm\">POST</Badge>\n<Badge mono solid color=\"warning\" size=\"sm\">PUT</Badge>\n<Badge mono solid color=\"error\" size=\"sm\">DELETE</Badge>\n```\n\n<Badge mono solid color=\"info\" size=\"sm\">GET</Badge>\n<Badge mono solid color=\"success\" size=\"sm\">POST</Badge>\n<Badge mono solid color=\"warning\" size=\"sm\">PUT</Badge>\n<Badge mono solid color=\"error\" size=\"sm\">DELETE</Badge>\n\n## Disabled state\n\nSet `disabled` to indicate inactive or unavailable states with reduced opacity:\n\n```html\n<Badge disabled icon=\"lock\" color=\"gray\">Badge</Badge>\n<Badge disabled icon=\"lock\" color=\"blue\">Badge</Badge>\n```\n\n<Badge disabled icon=\"lock\" color=\"gray\">Badge</Badge>\n<Badge disabled icon=\"lock\" color=\"blue\">Badge</Badge>\n\n## Inline usage\n\nBadges flow naturally with the surrounding text. For example, this feature requires a <Badge color=\"orange\" size=\"sm\">Premium</Badge> subscription, and this endpoint returns <Badge color=\"green\" size=\"sm\">JSON</Badge>.\n\n```html\nThis feature requires a <Badge color=\"orange\" size=\"sm\">Premium</Badge> subscription.\n```\n\n## Combined properties\n\nAll properties compose freely:\n\n```html\n<Badge icon=\"star\" color=\"purple\" size=\"lg\" shape=\"pill\">Pro</Badge>\n<Badge icon=\"check\" stroke color=\"green\" size=\"sm\">Verified</Badge>\n<Badge icon=\"flask-conical\" color=\"blue\" shape=\"rounded\">Beta</Badge>\n```\n\n<Badge icon=\"star\" color=\"purple\" size=\"lg\" shape=\"pill\">Pro</Badge>\n<Badge icon=\"check\" stroke color=\"green\" size=\"sm\">Verified</Badge>\n<Badge icon=\"flask-conical\" color=\"blue\" shape=\"rounded\">Beta</Badge>\n\n## Properties\n\n<Field value=\"color\" type=\"string\">\n Badge color variant. Defaults to `gray`. Options: `gray`, `blue`, `green`, `yellow`, `orange`, `red`, `purple`, `white`, `surface`, `white-destructive`, `surface-destructive`, plus the theme-driven `info`, `success`, `warning`, and `error`.\n</Field>\n\n<Field value=\"size\" type=\"string\">\n Badge size. Defaults to `md`. Options: `xs`, `sm`, `md`, `lg`.\n</Field>\n\n<Field value=\"shape\" type=\"string\">\n Badge shape. Defaults to `rounded`. Options: `rounded`, `pill`.\n</Field>\n\n<Field value=\"icon\" type=\"string\">\n A [Lucide](https://lucide.dev/icons) icon name in kebab-case, displayed before the badge text.\n</Field>\n\n<Field value=\"stroke\" type=\"boolean\">\n Display the badge with an outline instead of a filled background. Defaults to `false`.\n</Field>\n\n<Field value=\"solid\" type=\"boolean\">\n Display the badge with a strong filled background and contrasting text. Takes precedence over `stroke`. Defaults to `false`.\n</Field>\n\n<Field value=\"mono\" type=\"boolean\">\n Render the label in monospace uppercase, for code-like labels such as HTTP methods. Defaults to `false`.\n</Field>\n\n<Field value=\"disabled\" type=\"boolean\">\n Display the badge in a disabled state with reduced opacity. Defaults to `false`.\n</Field>\n\n<Field value=\"className\" type=\"string\">\n Additional CSS classes to apply to the badge.\n</Field>\n\n<Field value=\"children\" type=\"node\" required>\n The badge label.\n</Field>";
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
export const badgesMdxTemplate = `---
|
|
2
|
+
title: "Badges"
|
|
3
|
+
description: "Highlight statuses, version labels, and metadata inline with colored badges."
|
|
4
|
+
date: "2026-07-27"
|
|
5
|
+
category: "Components"
|
|
6
|
+
categoryOrder: 1
|
|
7
|
+
order: 12
|
|
8
|
+
---
|
|
9
|
+
# Badges
|
|
10
|
+
|
|
11
|
+
Highlight statuses, version labels, and metadata with small colored badges - inline within text or standing on their own.
|
|
12
|
+
|
|
13
|
+
## Basic badge
|
|
14
|
+
|
|
15
|
+
You can use the Badge component directly within your MDX files without any import:
|
|
16
|
+
|
|
17
|
+
\`\`\`html
|
|
18
|
+
<Badge>Badge</Badge>
|
|
19
|
+
\`\`\`
|
|
20
|
+
|
|
21
|
+
<Badge>Badge</Badge>
|
|
22
|
+
|
|
23
|
+
## Colors
|
|
24
|
+
|
|
25
|
+
The \`color\` property selects one of eleven variants to convey different meanings:
|
|
26
|
+
|
|
27
|
+
\`\`\`html
|
|
28
|
+
<Badge color="gray">Badge</Badge>
|
|
29
|
+
<Badge color="blue">Badge</Badge>
|
|
30
|
+
<Badge color="green">Badge</Badge>
|
|
31
|
+
<Badge color="yellow">Badge</Badge>
|
|
32
|
+
<Badge color="orange">Badge</Badge>
|
|
33
|
+
<Badge color="red">Badge</Badge>
|
|
34
|
+
<Badge color="purple">Badge</Badge>
|
|
35
|
+
<Badge color="white">Badge</Badge>
|
|
36
|
+
<Badge color="surface">Badge</Badge>
|
|
37
|
+
<Badge color="white-destructive">Badge</Badge>
|
|
38
|
+
<Badge color="surface-destructive">Badge</Badge>
|
|
39
|
+
\`\`\`
|
|
40
|
+
|
|
41
|
+
<Badge color="gray">Badge</Badge>
|
|
42
|
+
<Badge color="blue">Badge</Badge>
|
|
43
|
+
<Badge color="green">Badge</Badge>
|
|
44
|
+
<Badge color="yellow">Badge</Badge>
|
|
45
|
+
<Badge color="orange">Badge</Badge>
|
|
46
|
+
<Badge color="red">Badge</Badge>
|
|
47
|
+
<Badge color="purple">Badge</Badge>
|
|
48
|
+
<Badge color="white">Badge</Badge>
|
|
49
|
+
<Badge color="surface">Badge</Badge>
|
|
50
|
+
<Badge color="white-destructive">Badge</Badge>
|
|
51
|
+
<Badge color="surface-destructive">Badge</Badge>
|
|
52
|
+
|
|
53
|
+
## Sizes
|
|
54
|
+
|
|
55
|
+
Four sizes match different content hierarchies:
|
|
56
|
+
|
|
57
|
+
\`\`\`html
|
|
58
|
+
<Badge size="xs">Badge</Badge>
|
|
59
|
+
<Badge size="sm">Badge</Badge>
|
|
60
|
+
<Badge size="md">Badge</Badge>
|
|
61
|
+
<Badge size="lg">Badge</Badge>
|
|
62
|
+
\`\`\`
|
|
63
|
+
|
|
64
|
+
<Badge size="xs">Badge</Badge>
|
|
65
|
+
<Badge size="sm">Badge</Badge>
|
|
66
|
+
<Badge size="md">Badge</Badge>
|
|
67
|
+
<Badge size="lg">Badge</Badge>
|
|
68
|
+
|
|
69
|
+
## Shapes
|
|
70
|
+
|
|
71
|
+
Choose between rounded corners and a pill shape:
|
|
72
|
+
|
|
73
|
+
\`\`\`html
|
|
74
|
+
<Badge shape="rounded">Badge</Badge>
|
|
75
|
+
<Badge shape="pill">Badge</Badge>
|
|
76
|
+
\`\`\`
|
|
77
|
+
|
|
78
|
+
<Badge shape="rounded">Badge</Badge>
|
|
79
|
+
<Badge shape="pill">Badge</Badge>
|
|
80
|
+
|
|
81
|
+
## Icons
|
|
82
|
+
|
|
83
|
+
Add a [Lucide](https://lucide.dev/icons) icon (kebab-case name) for extra context. Unknown names render nothing, so a typo never breaks the page:
|
|
84
|
+
|
|
85
|
+
\`\`\`html
|
|
86
|
+
<Badge icon="circle-check" color="green">Passing</Badge>
|
|
87
|
+
<Badge icon="clock" color="orange">Pending</Badge>
|
|
88
|
+
<Badge icon="ban" color="red">Blocked</Badge>
|
|
89
|
+
\`\`\`
|
|
90
|
+
|
|
91
|
+
<Badge icon="circle-check" color="green">Passing</Badge>
|
|
92
|
+
<Badge icon="clock" color="orange">Pending</Badge>
|
|
93
|
+
<Badge icon="ban" color="red">Blocked</Badge>
|
|
94
|
+
|
|
95
|
+
## Stroke variant
|
|
96
|
+
|
|
97
|
+
Set \`stroke\` for an outline instead of a filled background:
|
|
98
|
+
|
|
99
|
+
\`\`\`html
|
|
100
|
+
<Badge stroke color="blue">Badge</Badge>
|
|
101
|
+
<Badge stroke color="green">Badge</Badge>
|
|
102
|
+
<Badge stroke color="orange">Badge</Badge>
|
|
103
|
+
<Badge stroke color="red">Badge</Badge>
|
|
104
|
+
\`\`\`
|
|
105
|
+
|
|
106
|
+
<Badge stroke color="blue">Badge</Badge>
|
|
107
|
+
<Badge stroke color="green">Badge</Badge>
|
|
108
|
+
<Badge stroke color="orange">Badge</Badge>
|
|
109
|
+
<Badge stroke color="red">Badge</Badge>
|
|
110
|
+
|
|
111
|
+
## Solid variant
|
|
112
|
+
|
|
113
|
+
Set \`solid\` for a strong filled background with contrasting text:
|
|
114
|
+
|
|
115
|
+
\`\`\`html
|
|
116
|
+
<Badge solid color="blue">Badge</Badge>
|
|
117
|
+
<Badge solid color="green">Badge</Badge>
|
|
118
|
+
<Badge solid color="red">Badge</Badge>
|
|
119
|
+
<Badge solid color="purple">Badge</Badge>
|
|
120
|
+
\`\`\`
|
|
121
|
+
|
|
122
|
+
<Badge solid color="blue">Badge</Badge>
|
|
123
|
+
<Badge solid color="green">Badge</Badge>
|
|
124
|
+
<Badge solid color="red">Badge</Badge>
|
|
125
|
+
<Badge solid color="purple">Badge</Badge>
|
|
126
|
+
|
|
127
|
+
## Semantic colors
|
|
128
|
+
|
|
129
|
+
The \`info\`, \`success\`, \`warning\`, and \`error\` colors come from your theme rather than the fixed palette, so they follow your \`theme.json\` and the light/dark toggle. They support the same \`stroke\` and \`solid\` variations:
|
|
130
|
+
|
|
131
|
+
\`\`\`html
|
|
132
|
+
<Badge color="info">Badge</Badge>
|
|
133
|
+
<Badge color="success">Badge</Badge>
|
|
134
|
+
<Badge color="warning">Badge</Badge>
|
|
135
|
+
<Badge color="error">Badge</Badge>
|
|
136
|
+
<Badge solid color="info">Badge</Badge>
|
|
137
|
+
<Badge solid color="success">Badge</Badge>
|
|
138
|
+
\`\`\`
|
|
139
|
+
|
|
140
|
+
<Badge color="info">Badge</Badge>
|
|
141
|
+
<Badge color="success">Badge</Badge>
|
|
142
|
+
<Badge color="warning">Badge</Badge>
|
|
143
|
+
<Badge color="error">Badge</Badge>
|
|
144
|
+
<Badge solid color="info">Badge</Badge>
|
|
145
|
+
<Badge solid color="success">Badge</Badge>
|
|
146
|
+
|
|
147
|
+
## HTTP method badges
|
|
148
|
+
|
|
149
|
+
Set \`mono\` for a monospace, uppercase label. Combining \`mono\`, \`solid\`, and the semantic colors gives the method chips Doccupine itself uses in the sidebar navigation and the API playground:
|
|
150
|
+
|
|
151
|
+
\`\`\`html
|
|
152
|
+
<Badge mono solid color="info" size="sm">GET</Badge>
|
|
153
|
+
<Badge mono solid color="success" size="sm">POST</Badge>
|
|
154
|
+
<Badge mono solid color="warning" size="sm">PUT</Badge>
|
|
155
|
+
<Badge mono solid color="error" size="sm">DELETE</Badge>
|
|
156
|
+
\`\`\`
|
|
157
|
+
|
|
158
|
+
<Badge mono solid color="info" size="sm">GET</Badge>
|
|
159
|
+
<Badge mono solid color="success" size="sm">POST</Badge>
|
|
160
|
+
<Badge mono solid color="warning" size="sm">PUT</Badge>
|
|
161
|
+
<Badge mono solid color="error" size="sm">DELETE</Badge>
|
|
162
|
+
|
|
163
|
+
## Disabled state
|
|
164
|
+
|
|
165
|
+
Set \`disabled\` to indicate inactive or unavailable states with reduced opacity:
|
|
166
|
+
|
|
167
|
+
\`\`\`html
|
|
168
|
+
<Badge disabled icon="lock" color="gray">Badge</Badge>
|
|
169
|
+
<Badge disabled icon="lock" color="blue">Badge</Badge>
|
|
170
|
+
\`\`\`
|
|
171
|
+
|
|
172
|
+
<Badge disabled icon="lock" color="gray">Badge</Badge>
|
|
173
|
+
<Badge disabled icon="lock" color="blue">Badge</Badge>
|
|
174
|
+
|
|
175
|
+
## Inline usage
|
|
176
|
+
|
|
177
|
+
Badges flow naturally with the surrounding text. For example, this feature requires a <Badge color="orange" size="sm">Premium</Badge> subscription, and this endpoint returns <Badge color="green" size="sm">JSON</Badge>.
|
|
178
|
+
|
|
179
|
+
\`\`\`html
|
|
180
|
+
This feature requires a <Badge color="orange" size="sm">Premium</Badge> subscription.
|
|
181
|
+
\`\`\`
|
|
182
|
+
|
|
183
|
+
## Combined properties
|
|
184
|
+
|
|
185
|
+
All properties compose freely:
|
|
186
|
+
|
|
187
|
+
\`\`\`html
|
|
188
|
+
<Badge icon="star" color="purple" size="lg" shape="pill">Pro</Badge>
|
|
189
|
+
<Badge icon="check" stroke color="green" size="sm">Verified</Badge>
|
|
190
|
+
<Badge icon="flask-conical" color="blue" shape="rounded">Beta</Badge>
|
|
191
|
+
\`\`\`
|
|
192
|
+
|
|
193
|
+
<Badge icon="star" color="purple" size="lg" shape="pill">Pro</Badge>
|
|
194
|
+
<Badge icon="check" stroke color="green" size="sm">Verified</Badge>
|
|
195
|
+
<Badge icon="flask-conical" color="blue" shape="rounded">Beta</Badge>
|
|
196
|
+
|
|
197
|
+
## Properties
|
|
198
|
+
|
|
199
|
+
<Field value="color" type="string">
|
|
200
|
+
Badge color variant. Defaults to \`gray\`. Options: \`gray\`, \`blue\`, \`green\`, \`yellow\`, \`orange\`, \`red\`, \`purple\`, \`white\`, \`surface\`, \`white-destructive\`, \`surface-destructive\`, plus the theme-driven \`info\`, \`success\`, \`warning\`, and \`error\`.
|
|
201
|
+
</Field>
|
|
202
|
+
|
|
203
|
+
<Field value="size" type="string">
|
|
204
|
+
Badge size. Defaults to \`md\`. Options: \`xs\`, \`sm\`, \`md\`, \`lg\`.
|
|
205
|
+
</Field>
|
|
206
|
+
|
|
207
|
+
<Field value="shape" type="string">
|
|
208
|
+
Badge shape. Defaults to \`rounded\`. Options: \`rounded\`, \`pill\`.
|
|
209
|
+
</Field>
|
|
210
|
+
|
|
211
|
+
<Field value="icon" type="string">
|
|
212
|
+
A [Lucide](https://lucide.dev/icons) icon name in kebab-case, displayed before the badge text.
|
|
213
|
+
</Field>
|
|
214
|
+
|
|
215
|
+
<Field value="stroke" type="boolean">
|
|
216
|
+
Display the badge with an outline instead of a filled background. Defaults to \`false\`.
|
|
217
|
+
</Field>
|
|
218
|
+
|
|
219
|
+
<Field value="solid" type="boolean">
|
|
220
|
+
Display the badge with a strong filled background and contrasting text. Takes precedence over \`stroke\`. Defaults to \`false\`.
|
|
221
|
+
</Field>
|
|
222
|
+
|
|
223
|
+
<Field value="mono" type="boolean">
|
|
224
|
+
Render the label in monospace uppercase, for code-like labels such as HTTP methods. Defaults to \`false\`.
|
|
225
|
+
</Field>
|
|
226
|
+
|
|
227
|
+
<Field value="disabled" type="boolean">
|
|
228
|
+
Display the badge in a disabled state with reduced opacity. Defaults to \`false\`.
|
|
229
|
+
</Field>
|
|
230
|
+
|
|
231
|
+
<Field value="className" type="string">
|
|
232
|
+
Additional CSS classes to apply to the badge.
|
|
233
|
+
</Field>
|
|
234
|
+
|
|
235
|
+
<Field value="children" type="node" required>
|
|
236
|
+
The badge label.
|
|
237
|
+
</Field>`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const buttonsMdxTemplate = "---\ntitle: \"Buttons\"\ndescription: \"A flexible action component supporting variants, sizes, icons, and links.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder:
|
|
1
|
+
export declare const buttonsMdxTemplate = "---\ntitle: \"Buttons\"\ndescription: \"A flexible action component supporting variants, sizes, icons, and links.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 11\n---\n# Buttons\n\nA flexible action component supporting variants, sizes, icons, and links.\n\nButtons help users initiate actions or navigate to other pages. Use variants to convey emphasis, size for hierarchy, and icons to add clarity.\n\n## Button Usage\n\nYou can use the Button component directly within your MDX files without any import. The following examples show basic usage:\n\n```html\n<Button>Primary</Button>\n<Button variant=\"secondary\">Secondary</Button>\n<Button variant=\"tertiary\">Tertiary</Button>\n```\n\n<Button>Primary</Button>\n<Button variant=\"secondary\">Secondary</Button>\n<Button variant=\"tertiary\">Tertiary</Button>\n\n### Sizes\n\n```html\n<Button size=\"default\">Default size</Button>\n<Button size=\"big\">Big size</Button>\n```\n\n<Button size=\"default\">Default size</Button>\n<Button size=\"big\">Big size</Button>\n\n### Outline\n\n```html\n<Button outline>Outlined</Button>\n```\n\n<Button outline>Outlined</Button>\n\n### Full width\n\n```html\n<Button fullWidth>Full width button</Button>\n```\n\n<Button fullWidth>Full width button</Button>\n\n### With icon\n\n```html\n<Button icon=\"arrow-right\" iconPosition=\"left\">\n With left icon\n</Button>\n<Button icon=\"arrow-right\" iconPosition=\"right\">\n With right icon\n</Button>\n```\n\n<Button icon=\"arrow-right\" iconPosition=\"left\">With left icon</Button>\n<Button icon=\"arrow-right\" iconPosition=\"right\">With right icon</Button>\n\n### As a link\n\nButtons can render as links when you provide an `href`.\n\n```html\n<Button href=\"/\">Home</Button>\n```\n\n<Button href=\"/\">Home</Button>\n\n## Properties\n\n<Field value=\"children\" type=\"node\" required>\n The content of the button.\n</Field>\n\n<Field value=\"variant\" type=\"string\">\n Controls visual emphasis.\n</Field>\n\n- **primary**\n- **secondary**\n- **tertiary**\n\n<Field value=\"size\" type=\"string\">\n Controls the size of the button.\n</Field>\n\n- **default**\n- **big**\n\n<Field value=\"outline\" type=\"boolean\">\n When true, renders the outlined style of the selected variant.\n</Field>\n\n<Field value=\"fullWidth\" type=\"boolean\">\n When true, the button expands to the full width of its container.\n</Field>\n\n<Field value=\"icon\" type=\"string\">\n Optional icon to display inside the button.\n</Field>\n\n- [**Lucide icon**](https://lucide.dev/icons) name or icon node\n\n<Field value=\"iconPosition\" type=\"string\">\n The position of the icon relative to the text.\n</Field>\n\n- **left**\n- **right**\n\n<Field value=\"href\" type=\"string\">\n When provided, the button renders as a link (`<a>`), enabling navigation.\n</Field>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const calloutsMdxTemplate = "---\ntitle: \"Callouts\"\ndescription: \"Make your content stand out by using callouts for extra emphasis.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder:
|
|
1
|
+
export declare const calloutsMdxTemplate = "---\ntitle: \"Callouts\"\ndescription: \"Make your content stand out by using callouts for extra emphasis.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 5\n---\n# Callouts\n\nMake your content stand out by using callouts for extra emphasis.\n\nYou can format them as Note, Warning, Info, Danger and Success.\n\n## Callouts Usage\n\nYou can use the Callouts component directly within your MDX files without any import. The following example shows a basic usage:\n\n```html\n<Callout type=\"note\">This is a note callout</Callout>\n<Callout type=\"warning\">This is a warning callout</Callout>\n<Callout type=\"info\">This is an info callout</Callout>\n<Callout type=\"danger\">This is a danger callout</Callout>\n<Callout type=\"success\">This is a success callout</Callout>\n```\n\n<Callout type=\"note\">\n This is a note callout\n</Callout>\n<Callout type=\"warning\">\n This is a warning callout\n</Callout>\n<Callout type=\"info\">\n This is an info callout\n</Callout>\n<Callout type=\"danger\">\n This is a danger callout\n</Callout>\n<Callout type=\"success\">\n This is a success callout\n</Callout>\n\n## Properties\n\n<Field value=\"type\" type=\"string\">\n The type of the callout: `note`, `info`, `warning`, `danger`, or `success`.\n</Field>\n\n<Field value=\"icon\" type=\"string\">\n A custom [Lucide](https://lucide.dev/icons) icon name. Overrides the default icon for the callout type.\n</Field>\n\n<Field value=\"children\" type=\"node\" required>\n The content of the callout.\n</Field>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const cardsMdxTemplate = "---\ntitle: \"Cards\"\ndescription: \"Cards act as visual containers for your content, giving you flexibility to combine text, icons, images, and links in a clean and organized way.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder:
|
|
1
|
+
export declare const cardsMdxTemplate = "---\ntitle: \"Cards\"\ndescription: \"Cards act as visual containers for your content, giving you flexibility to combine text, icons, images, and links in a clean and organized way.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 10\n---\n# Cards\n\nDuplicate a page or section with ease, then emphasize important information or links using customizable layouts and icons.\n\nCards act as visual containers for your content, giving you flexibility to combine text, icons, images, and links in a clean and organized way.\n\n## Cards Usage\n\nYou can use the Cards component directly within your MDX files without any import. The following example shows a basic usage:\n\n```html\n<Card title=\"Note\" icon=\"badge-info\">\n Doccupine CLI is a command-line tool that helps you create and manage your\n Doccupine project. It provides a simple and intuitive interface for creating\n and configuring your project.\n</Card>\n```\n\n<Card title=\"Note\" icon=\"badge-info\">\n Doccupine CLI is a command-line tool that helps you create and manage your Doccupine project. It provides a simple and intuitive interface for creating and configuring your project.\n</Card>\n\n## Link Card\n\nPass a `href` prop to turn the card into a clickable link. The card will display interactive hover and focus styles automatically.\n\n```html\n<Card title=\"Getting Started\" icon=\"rocket\" href=\"/cards\">\n Learn how to set up Doccupine and create your first documentation site.\n</Card>\n```\n\n<Card title=\"Getting Started\" icon=\"rocket\" href=\"/cards\">\n Learn how to set up Doccupine and create your first documentation site.\n</Card>\n\n## Properties\n\n<Field value=\"title\" type=\"string\">\n An optional title for the card. When omitted, the card renders without a title.\n</Field>\n\n<Field value=\"icon\" type=\"string\">\n The [Lucide](https://lucide.dev/icons) icon name to display in the card.\n</Field>\n\n<Field value=\"href\" type=\"string\">\n A URL or path to link to. When provided, the card becomes a clickable link with interactive styles.\n</Field>\n\n<Field value=\"children\" type=\"node\" required>\n The content of the card.\n</Field>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const colorSwatchesMdxTemplate = "---\ntitle: \"Color Swatches\"\ndescription: \"Display color palettes with labeled swatches to document your theme colors.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder:
|
|
1
|
+
export declare const colorSwatchesMdxTemplate = "---\ntitle: \"Color Swatches\"\ndescription: \"Display color palettes with labeled swatches to document your theme colors.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 21\n---\n# Color Swatches\n\nDisplay color palettes with labeled swatches to document your theme colors.\n\nThe `ColorSwatch` component renders a visual preview of a color alongside its token name, and `ColorSwatchGroup` arranges multiple swatches in a responsive grid.\n\n## Usage\n\nYou can use the ColorSwatch components directly within your MDX files without any import:\n\n```html\n<ColorSwatchGroup>\n <ColorSwatch token=\"primary\" value=\"#6366F1\" />\n <ColorSwatch token=\"secondary\" value=\"#EC4899\" />\n <ColorSwatch token=\"success\" value=\"#10B981\" />\n <ColorSwatch token=\"warning\" value=\"#F59E0B\" />\n <ColorSwatch token=\"danger\" value=\"#EF4444\" />\n <ColorSwatch token=\"info\" value=\"#3B82F6\" />\n</ColorSwatchGroup>\n```\n\n<ColorSwatchGroup>\n <ColorSwatch token=\"primary\" value=\"#6366F1\" />\n <ColorSwatch token=\"secondary\" value=\"#EC4899\" />\n <ColorSwatch token=\"success\" value=\"#10B981\" />\n <ColorSwatch token=\"warning\" value=\"#F59E0B\" />\n <ColorSwatch token=\"danger\" value=\"#EF4444\" />\n <ColorSwatch token=\"info\" value=\"#3B82F6\" />\n</ColorSwatchGroup>\n\n## Dark Colors\n\nText color automatically adapts based on the background luminance, so dark swatches display white text:\n\n```html\n<ColorSwatchGroup>\n <ColorSwatch token=\"dark\" value=\"#1E1E2E\" />\n <ColorSwatch token=\"grayDark\" value=\"#374151\" />\n <ColorSwatch token=\"gray\" value=\"#6B7280\" />\n <ColorSwatch token=\"grayLight\" value=\"#D1D5DB\" />\n <ColorSwatch token=\"light\" value=\"#F9FAFB\" />\n <ColorSwatch token=\"white\" value=\"#FFFFFF\" />\n</ColorSwatchGroup>\n```\n\n<ColorSwatchGroup>\n <ColorSwatch token=\"dark\" value=\"#1E1E2E\" />\n <ColorSwatch token=\"grayDark\" value=\"#374151\" />\n <ColorSwatch token=\"gray\" value=\"#6B7280\" />\n <ColorSwatch token=\"grayLight\" value=\"#D1D5DB\" />\n <ColorSwatch token=\"light\" value=\"#F9FAFB\" />\n <ColorSwatch token=\"white\" value=\"#FFFFFF\" />\n</ColorSwatchGroup>\n\n## ColorSwatch Properties\n\n<Field value=\"token\" type=\"string\" required>\n The name or label displayed below the color preview (e.g. a design token name).\n</Field>\n\n<Field value=\"value\" type=\"string\" required>\n A hex color value (e.g. `#6366F1`). Displayed inside the color preview and used as the background.\n</Field>\n\n## ColorSwatchGroup Properties\n\n<Field value=\"children\" type=\"node\" required>\n One or more `ColorSwatch` components to display in a responsive grid.\n</Field>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const columnsMdxTemplate = "---\ntitle: \"Columns\"\ndescription: \"Columns are used to organize content in a grid-like structure.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder:
|
|
1
|
+
export declare const columnsMdxTemplate = "---\ntitle: \"Columns\"\ndescription: \"Columns are used to organize content in a grid-like structure.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 17\n---\n# Columns\n\nArrange multiple cards neatly in a side-by-side grid layout.\n\nThe `Columns` component helps you organize several `Card` elements into a visually balanced grid. By choosing how many columns you want, you can control the layout and spacing of your cards.\n\n## Columns Usage\n\nYou can use the `Columns` component to create a grid of cards with a specified number of columns.\n\n```html\n<Columns cols={2}>\n <Card title=\"Getting Started\" icon=\"rocket\">\n Kick off your project using our easy quickstart guide.\n </Card>\n <Card title=\"API Reference\" icon=\"code\">\n Browse all endpoints, parameters, and code examples for your API integration.\n </Card>\n</Columns>\n```\n\n<Columns cols={2}>\n <Card title=\"Getting Started\" icon=\"rocket\">\n Kick off your project using our easy quickstart guide.\n </Card>\n <Card title=\"API Reference\" icon=\"code\">\n Browse all endpoints, parameters, and code examples for your API integration.\n </Card>\n</Columns>\n\n## Properties\n\n<Field value=\"cols\" type=\"number\">\n The number of columns in the grid. Defaults to 1.\n</Field>\n\n<Field value=\"children\" type=\"node\" required>\n The content of the columns.\n</Field>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const componentsMdxTemplate = "---\ntitle: \"Components\"\ndescription: \"Explore the full library of built-in components available in your documentation pages.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\ncategoryIcon: \"blocks\"\norder: 0\n---\n# Components\n\nDoccupine includes a rich set of built-in components you can use directly in your MDX files - no imports needed. Browse the full library below.\n\n<Columns cols={2}>\n <Card title=\"Headers and Text\" icon=\"heading\" href=\"/headers-and-text\">\n Headings, paragraphs, bold, italic, links, and other text formatting.\n </Card>\n <Card title=\"Lists and Tables\" icon=\"list\" href=\"/lists-and-tables\">\n Ordered lists, unordered lists, and data tables.\n </Card>\n <Card title=\"Code\" icon=\"code\" href=\"/code\">\n Inline code, fenced code blocks, and syntax highlighting.\n </Card>\n <Card title=\"Callouts\" icon=\"megaphone\" href=\"/callouts\">\n Highlighted blocks for tips, warnings, and important notes.\n </Card>\n <Card title=\"Accordion\" icon=\"chevrons-down\" href=\"/accordion\">\n Collapsible sections for organizing lengthy content.\n </Card>\n <Card title=\"Tabs\" icon=\"panel-top\" href=\"/tabs\">\n Tabbed interfaces for grouping related content.\n </Card>\n <Card title=\"Steps\" icon=\"footprints\" href=\"/steps\">\n Numbered step-by-step guides and walkthroughs.\n </Card>\n <Card title=\"Cards\" icon=\"square\" href=\"/cards\">\n Visual containers for content, icons, and links.\n </Card>\n <Card title=\"Buttons\" icon=\"mouse-pointer-click\" href=\"/buttons\">\n Action components with variants, sizes, and icons.\n </Card>\n <Card title=\"Images and Embeds\" icon=\"image\" href=\"/
|
|
1
|
+
export declare const componentsMdxTemplate = "---\ntitle: \"Components\"\ndescription: \"Explore the full library of built-in components available in your documentation pages.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\ncategoryIcon: \"blocks\"\norder: 0\n---\n# Components\n\nDoccupine includes a rich set of built-in components you can use directly in your MDX files - no imports needed. Browse the full library below.\n\n<Columns cols={2}>\n <Card title=\"Headers and Text\" icon=\"heading\" href=\"/headers-and-text\">\n Headings, paragraphs, bold, italic, links, and other text formatting.\n </Card>\n <Card title=\"Lists and Tables\" icon=\"list\" href=\"/lists-and-tables\">\n Ordered lists, unordered lists, and data tables.\n </Card>\n <Card title=\"Code\" icon=\"code\" href=\"/code\">\n Inline code, fenced code blocks, and syntax highlighting.\n </Card>\n <Card title=\"Prompt\" icon=\"sparkles\" href=\"/prompt\">\n Pre-built AI prompts readers can copy or open in Cursor.\n </Card>\n <Card title=\"Callouts\" icon=\"megaphone\" href=\"/callouts\">\n Highlighted blocks for tips, warnings, and important notes.\n </Card>\n <Card title=\"Accordion\" icon=\"chevrons-down\" href=\"/accordion\">\n Collapsible sections for organizing lengthy content.\n </Card>\n <Card title=\"Tabs\" icon=\"panel-top\" href=\"/tabs\">\n Tabbed interfaces for grouping related content.\n </Card>\n <Card title=\"Steps\" icon=\"footprints\" href=\"/steps\">\n Numbered step-by-step guides and walkthroughs.\n </Card>\n <Card title=\"Tree\" icon=\"folder-tree\" href=\"/tree\">\n File and folder structures with collapsible nodes and keyboard navigation.\n </Card>\n <Card title=\"Cards\" icon=\"square\" href=\"/cards\">\n Visual containers for content, icons, and links.\n </Card>\n <Card title=\"Buttons\" icon=\"mouse-pointer-click\" href=\"/buttons\">\n Action components with variants, sizes, and icons.\n </Card>\n <Card title=\"Badges\" icon=\"tag\" href=\"/badges\">\n Colored labels for statuses, versions, and metadata.\n </Card>\n <Card title=\"Tooltips\" icon=\"message-square\" href=\"/tooltips\">\n Contextual definitions and explanations shown on hover.\n </Card>\n <Card title=\"Images and Embeds\" icon=\"image\" href=\"/images-and-embeds\">\n Images, videos, and embedded content.\n </Card>\n <Card title=\"Frames\" icon=\"frame\" href=\"/frames\">\n Bordered containers with captions for images, videos, and diagrams.\n </Card>\n <Card title=\"Icons\" icon=\"smile\" href=\"/icons\">\n Lucide icons you can use anywhere in your docs.\n </Card>\n <Card title=\"Columns\" icon=\"columns-3\" href=\"/columns\">\n Grid layouts for arranging cards and content side by side.\n </Card>\n <Card title=\"Fields\" icon=\"text-cursor-input\" href=\"/fields\">\n Property and parameter documentation blocks.\n </Card>\n <Card title=\"API Playground\" icon=\"square-terminal\" href=\"/api-playground\">\n Interactive API reference where readers send real requests and see live responses.\n </Card>\n <Card title=\"Update\" icon=\"bell\" href=\"/update\">\n Changelog blocks with a subscribable RSS feed.\n </Card>\n <Card title=\"Color Swatches\" icon=\"palette\" href=\"/color-swatches\">\n Visual color palette swatches to document your theme colors.\n </Card>\n <Card title=\"Mermaid\" icon=\"workflow\" href=\"/mermaid\">\n Flowcharts, sequence diagrams, and other visualizations from Mermaid syntax.\n </Card>\n</Columns>";
|
|
@@ -21,6 +21,9 @@ Doccupine includes a rich set of built-in components you can use directly in you
|
|
|
21
21
|
<Card title="Code" icon="code" href="/code">
|
|
22
22
|
Inline code, fenced code blocks, and syntax highlighting.
|
|
23
23
|
</Card>
|
|
24
|
+
<Card title="Prompt" icon="sparkles" href="/prompt">
|
|
25
|
+
Pre-built AI prompts readers can copy or open in Cursor.
|
|
26
|
+
</Card>
|
|
24
27
|
<Card title="Callouts" icon="megaphone" href="/callouts">
|
|
25
28
|
Highlighted blocks for tips, warnings, and important notes.
|
|
26
29
|
</Card>
|
|
@@ -33,13 +36,22 @@ Doccupine includes a rich set of built-in components you can use directly in you
|
|
|
33
36
|
<Card title="Steps" icon="footprints" href="/steps">
|
|
34
37
|
Numbered step-by-step guides and walkthroughs.
|
|
35
38
|
</Card>
|
|
39
|
+
<Card title="Tree" icon="folder-tree" href="/tree">
|
|
40
|
+
File and folder structures with collapsible nodes and keyboard navigation.
|
|
41
|
+
</Card>
|
|
36
42
|
<Card title="Cards" icon="square" href="/cards">
|
|
37
43
|
Visual containers for content, icons, and links.
|
|
38
44
|
</Card>
|
|
39
45
|
<Card title="Buttons" icon="mouse-pointer-click" href="/buttons">
|
|
40
46
|
Action components with variants, sizes, and icons.
|
|
41
47
|
</Card>
|
|
42
|
-
<Card title="
|
|
48
|
+
<Card title="Badges" icon="tag" href="/badges">
|
|
49
|
+
Colored labels for statuses, versions, and metadata.
|
|
50
|
+
</Card>
|
|
51
|
+
<Card title="Tooltips" icon="message-square" href="/tooltips">
|
|
52
|
+
Contextual definitions and explanations shown on hover.
|
|
53
|
+
</Card>
|
|
54
|
+
<Card title="Images and Embeds" icon="image" href="/images-and-embeds">
|
|
43
55
|
Images, videos, and embedded content.
|
|
44
56
|
</Card>
|
|
45
57
|
<Card title="Frames" icon="frame" href="/frames">
|
|
@@ -58,7 +70,7 @@ Doccupine includes a rich set of built-in components you can use directly in you
|
|
|
58
70
|
Interactive API reference where readers send real requests and see live responses.
|
|
59
71
|
</Card>
|
|
60
72
|
<Card title="Update" icon="bell" href="/update">
|
|
61
|
-
Changelog
|
|
73
|
+
Changelog blocks with a subscribable RSS feed.
|
|
62
74
|
</Card>
|
|
63
75
|
<Card title="Color Swatches" icon="palette" href="/color-swatches">
|
|
64
76
|
Visual color palette swatches to document your theme colors.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const fieldsMdxTemplate = "---\ntitle: \"Fields\"\ndescription: \"Configure parameters for your API or SDK documentation.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder:
|
|
1
|
+
export declare const fieldsMdxTemplate = "---\ntitle: \"Fields\"\ndescription: \"Configure parameters for your API or SDK documentation.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 18\n---\n# Fields\n\nConfigure parameters for your API or SDK documentation.\n\nFields allow you to describe both the **inputs** (parameters) and **outputs** (responses) of your API. The main field component is available: `Field` for parameters and for responses.\n\n## Fields Usage\n\nUse the `<Field>` component to declare API or SDK parameters, or define the return values of an API.\n\n<Field value=\"param\" type=\"string\" required>\n Example definition of a parameter field.\n</Field>\n\n```html\n<Field value=\"param\" type=\"string\" required>\n Example definition of a parameter field.\n</Field>\n```\n\n## Properties\n\n<Field value=\"value\" type=\"string\" required>\n The name of the field.\n</Field>\n\n<Field value=\"type\" type=\"string\" required>\n The type of the field.\n</Field>\n\n<Field value=\"required\" type=\"boolean\">\n Whether the field is required.\n</Field>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const framesMdxTemplate = "---\ntitle: \"Frames\"\ndescription: \"Give images, videos, and diagrams a bordered container with an optional caption.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder:
|
|
1
|
+
export declare const framesMdxTemplate = "---\ntitle: \"Frames\"\ndescription: \"Give images, videos, and diagrams a bordered container with an optional caption.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 15\n---\n# Frames\n\nGive images, videos, and diagrams a bordered container with an optional caption.\n\nA frame lifts visual content out of the surrounding prose. It centers whatever you put inside, wraps it in a soft border, and gives you a place to attach a caption - so screenshots and diagrams read as deliberate figures rather than stray images.\n\n<Frame>\n <img src=\"https://docs.doccupine.com/demo.png\" alt=\"A product screenshot displayed inside a frame.\" />\n</Frame>\n\n## Frame usage\n\nWrap any visual element in `<Frame>`. Images, videos, iframes, and Mermaid diagrams all work.\n\n```html\n<Frame>\n <img src=\"/images/dashboard.png\" alt=\"The project dashboard.\" />\n</Frame>\n```\n\n## Captions\n\nPass a `caption` to add a short line of context under the content, inside the frame.\n\n```html\n<Frame caption=\"The dashboard groups every project by workspace.\">\n <img src=\"/images/dashboard.png\" alt=\"The project dashboard.\" />\n</Frame>\n```\n\n<Frame caption=\"The dashboard groups every project by workspace.\">\n <img src=\"https://docs.doccupine.com/demo.png\" alt=\"The project dashboard.\" />\n</Frame>\n\n### Formatting inside captions\n\nCaptions understand a small set of inline Markdown: links, bold, italic, and inline code wrapped in backticks. Everything else is rendered as plain text.\n\n```html\n<Frame caption=\"**Heads up:** run `doccupine build` before you [deploy](/deployment-and-hosting).\">\n <img src=\"/images/dashboard.png\" alt=\"The project dashboard.\" />\n</Frame>\n```\n\n<Frame caption=\"**Heads up:** run `doccupine build` before you [deploy](/deployment-and-hosting).\">\n <img src=\"https://docs.doccupine.com/demo.png\" alt=\"The project dashboard.\" />\n</Frame>\n\n<Callout type=\"note\">\n Links that point to a path starting with `/` are routed through Next.js, so they navigate without a full page reload. External links open in a new tab.\n</Callout>\n\n## Hints\n\nA `hint` is a line of text that sits above the frame. Use it to set up what the reader is about to look at - captions work better for describing what they just saw.\n\n```html\n<Frame hint=\"Every workspace you belong to appears in the switcher.\" caption=\"The dashboard groups every project by workspace.\">\n <img src=\"/images/dashboard.png\" alt=\"The project dashboard.\" />\n</Frame>\n```\n\n<Frame hint=\"Every workspace you belong to appears in the switcher.\" caption=\"The dashboard groups every project by workspace.\">\n <img src=\"https://docs.doccupine.com/demo.png\" alt=\"The project dashboard.\" />\n</Frame>\n\nHints accept the same inline Markdown as captions.\n\n## Videos\n\nVideos can be framed like any other element. A video with `autoPlay` is given `muted`, `loop`, and `playsInline` automatically, because browsers refuse to autoplay a video with sound and iOS otherwise opens it fullscreen.\n\n```html\n<Frame caption=\"Creating a project takes about twenty seconds.\">\n <video autoPlay src=\"/videos/create-project.mp4\" />\n</Frame>\n```\n\nSet any of those attributes yourself and your value is kept. Videos without `autoPlay` are left exactly as you wrote them, so add `controls` when you want the reader to press play.\n\n```html\n<Frame caption=\"A twenty second walkthrough.\">\n <video controls src=\"/videos/create-project.mp4\" />\n</Frame>\n```\n\n<Frame caption=\"A twenty second walkthrough.\">\n <video controls className=\"aspect-video\" src=\"https://samplelib.com/lib/preview/mp4/sample-20s.mp4\" />\n</Frame>\n\n## Multiple elements\n\nA frame can hold more than one child. They stack vertically and stay centered, which is handy for a before-and-after pair under a single caption.\n\n<Frame caption=\"Light and dark renderings of the same diagram.\">\n <img src=\"https://docs.doccupine.com/demo.png\" alt=\"The diagram in light mode.\" />\n <img src=\"https://docs.doccupine.com/demo.png\" alt=\"The diagram in dark mode.\" style={{ filter: \"invert(1)\" }} />\n</Frame>\n\n<Callout type=\"note\">\n Frames don't replace alt text. Keep writing descriptive `alt` attributes - a caption is visible to everyone, while alt text is what screen readers announce in place of the image.\n</Callout>\n\n## Properties\n\n<Field value=\"children\" type=\"node\" required>\n The content to frame. Usually an image, video, iframe, or diagram.\n</Field>\n\n<Field value=\"caption\" type=\"string\">\n Text shown inside the frame, centered below the content. Supports inline Markdown.\n</Field>\n\n<Field value=\"hint\" type=\"string\">\n Text shown above the frame. Supports inline Markdown.\n</Field>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const iconsMdxTemplate = "---\ntitle: \"Icons\"\ndescription: \"Integrate visual icons from well-known libraries to enrich your documentation.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder:
|
|
1
|
+
export declare const iconsMdxTemplate = "---\ntitle: \"Icons\"\ndescription: \"Integrate visual icons from well-known libraries to enrich your documentation.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 16\n---\n# Icons\n\nIntegrate visual icons from well-known libraries to enrich your documentation.\n\nIcons can be sourced from Lucide, SVG elements, external URLs, or local files within your project directory.\n\n<Icon name=\"flag\" size={32} />\n\n```html\n<Icon name=\"flag\" size={32} />\n```\n\n## Inline icons\n\nYou can use icons directly within text to highlight information or add visual context.\n\n<Icon name=\"flag\" size={16} /> Build your documentation seamlessly.\n\n```html\n<Icon name=\"flag\" size={16} /> Build your documentation seamlessly.\n```\n\n## Properties\n\n<Field value=\"name\" type=\"string\" required>\n The icon to display.\n</Field>\n\n- [**Lucide icon**](https://lucide.dev/icons) name\n\n<Field value=\"size\" type=\"number\">\n The size of the icon in pixels.\n</Field>\n\n<Field value=\"color\" type=\"string\">\n The color of the icon as a hex code (for example, `#FF5733`).\n</Field>";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const imageAndEmbedsMdxTemplate = "---\ntitle: \"Images and embeds\"\ndescription: \"Enrich your documentation with visuals, videos, and interactive embeds.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder:
|
|
1
|
+
export declare const imageAndEmbedsMdxTemplate = "---\ntitle: \"Images and embeds\"\ndescription: \"Enrich your documentation with visuals, videos, and interactive embeds.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 14\n---\n# Images and embeds\n\nEnrich your documentation with visuals, videos, and interactive embeds.\n\nDisplay images, embed video content, or add interactive frames via iframes to supplement your docs.\n\n\n\n## Images\n\nImages enhance documentation with context, illustration, or decorative visual cues.\n\n### Basic Image Syntax\n\nInclude an image in Markdown using the syntax below:\n\n```md\n\n```\n\n<Callout type=\"note\">\n Use clear, descriptive alt text for accessibility and better SEO. Alt text should describe the image\u2019s appearance or content.\n</Callout>\n\n### HTML image embeds\n\nEmbed images in your Markdown content using HTML syntax.\n\n```md\n<img src=\"https://docs.doccupine.com/demo.png\" alt=\"Alt text\">\n```\n\n### Theme-aware images\n\nShow different images depending on whether the user is in light or dark mode. Add the `light-only` or `dark-only` className to display an image exclusively in that theme.\n\n```md\n<img className=\"light-only\" src=\"/images/diagram-light.png\" alt=\"Diagram\">\n<img className=\"dark-only\" src=\"/images/diagram-dark.png\" alt=\"Diagram\">\n```\n\n<img className=\"light-only\" src=\"https://docs.doccupine.com/demo.png\" alt=\"This image is only visible in light mode\" />\n<img className=\"dark-only\" src=\"https://docs.doccupine.com/demo.png\" alt=\"This image is only visible in dark mode\" style={{ filter: \"invert(1)\" }} />\n\n<Callout type=\"note\">\n The `light-only` and `dark-only` classes work on any element, not just images. You can use them on videos, iframes, or wrapper divs too.\n</Callout>\n\n## Videos\n\nVideos add a dynamic element to your documentation, engaging your audience and providing a more immersive experience.\n\n### YouTube Embed\n\nTo embed a YouTube video, use the following syntax:\n\n```html\n<iframe\n className=\"aspect-video\"\n src=\"https://www.youtube.com/embed/ResP_eVPYQo\"\n title=\"YouTube video player\"\n frameborder=\"0\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n allowfullscreen\n></iframe>\n```\n\n<iframe\n className=\"aspect-video\"\n src=\"https://www.youtube.com/embed/ResP_eVPYQo\"\n title=\"YouTube video player\"\n frameBorder=\"0\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n allowFullScreen\n></iframe>\n\n### Self-hosted videos\n\nServe up your own video content using the `<video>` tag:\n\n```html\n<video\n controls\n className=\"aspect-video\"\n src=\"https://samplelib.com/lib/preview/mp4/sample-20s.mp4\"\n></video>\n```\n\n<video\ncontrols\nclassName=\"aspect-video\"\nsrc=\"https://samplelib.com/lib/preview/mp4/sample-20s.mp4\"\n\n> </video>\n\n#### Autoplay and Looping\n\nFor demonstration videos that loop or start automatically, add attributes as shown:\n\n```html\n<video\n controls\n className=\"aspect-video\"\n src=\"https://samplelib.com/lib/preview/mp4/sample-20s.mp4\"\n autoplay\n muted\n loop\n playsinline\n></video>\n```";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const imagesAndEmbedsMdxTemplate = "---\ntitle: \"Images and embeds\"\ndescription: \"Enrich your documentation with visuals, videos, and interactive embeds.\"\ndate: \"2026-02-19\"\ncategory: \"Components\"\ncategoryOrder: 1\norder: 14\n---\n# Images and embeds\n\nEnrich your documentation with visuals, videos, and interactive embeds.\n\nDisplay images, embed video content, or add interactive frames via iframes to supplement your docs.\n\n\n\n## Images\n\nImages enhance documentation with context, illustration, or decorative visual cues.\n\n### Basic Image Syntax\n\nInclude an image in Markdown using the syntax below:\n\n```md\n\n```\n\n<Callout type=\"note\">\n Use clear, descriptive alt text for accessibility and better SEO. Alt text should describe the image\u2019s appearance or content.\n</Callout>\n\n### HTML image embeds\n\nEmbed images in your Markdown content using HTML syntax.\n\n```md\n<img src=\"https://docs.doccupine.com/demo.png\" alt=\"Alt text\">\n```\n\n### Theme-aware images\n\nShow different images depending on whether the user is in light or dark mode. Add the `light-only` or `dark-only` className to display an image exclusively in that theme.\n\n```md\n<img className=\"light-only\" src=\"/images/diagram-light.png\" alt=\"Diagram\">\n<img className=\"dark-only\" src=\"/images/diagram-dark.png\" alt=\"Diagram\">\n```\n\n<img className=\"light-only\" src=\"https://docs.doccupine.com/demo.png\" alt=\"This image is only visible in light mode\" />\n<img className=\"dark-only\" src=\"https://docs.doccupine.com/demo.png\" alt=\"This image is only visible in dark mode\" style={{ filter: \"invert(1)\" }} />\n\n<Callout type=\"note\">\n The `light-only` and `dark-only` classes work on any element, not just images. You can use them on videos, iframes, or wrapper divs too.\n</Callout>\n\n## Videos\n\nVideos add a dynamic element to your documentation, engaging your audience and providing a more immersive experience.\n\n### YouTube Embed\n\nTo embed a YouTube video, use the following syntax:\n\n```html\n<iframe\n className=\"aspect-video\"\n src=\"https://www.youtube.com/embed/ResP_eVPYQo\"\n title=\"YouTube video player\"\n frameborder=\"0\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n allowfullscreen\n></iframe>\n```\n\n<iframe\n className=\"aspect-video\"\n src=\"https://www.youtube.com/embed/ResP_eVPYQo\"\n title=\"YouTube video player\"\n frameBorder=\"0\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n allowFullScreen\n></iframe>\n\n### Self-hosted videos\n\nServe up your own video content using the `<video>` tag:\n\n```html\n<video\n controls\n className=\"aspect-video\"\n src=\"https://samplelib.com/lib/preview/mp4/sample-20s.mp4\"\n></video>\n```\n\n<video\ncontrols\nclassName=\"aspect-video\"\nsrc=\"https://samplelib.com/lib/preview/mp4/sample-20s.mp4\"\n\n> </video>\n\n#### Autoplay and Looping\n\nFor demonstration videos that loop or start automatically, add attributes as shown:\n\n```html\n<video\n controls\n className=\"aspect-video\"\n src=\"https://samplelib.com/lib/preview/mp4/sample-20s.mp4\"\n autoplay\n muted\n loop\n playsinline\n></video>\n```";
|