You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The contextual menu provides quick access to AI-optimized content and direct integrations with popular AI tools. When users select the contextual menu on any page, they can copy content as context for AI tools or open conversations in ChatGPT, Claude, Perplexity, or a custom tool of your choice with your documentation already loaded as context.
10
11
@@ -63,9 +64,7 @@ Create custom options in the contextual menu by adding an object to the `options
63
64
The description of the option. Displayed beneath the title when the contextual menu is expanded.
64
65
</ResponseField>
65
66
66
-
<ResponseFieldname="icon"type="string"required>
67
-
The icon of the option. Accepts any icon from the [Icons](/components/icons) collection.
Copy file name to clipboardExpand all lines: code.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ const hello = "world";
93
93
94
94
### Icon
95
95
96
-
Add an icon to your code block. You can use [FontAwesome](https://fontawesome.com/icons) icons, [Lucide](https://lucide.dev/icons/) icons, or absolute URLs.
96
+
Add an icon to your code block using the `icon` property. See [Icons](/components/icons) for all available options.
Use cards to create visual containers for content. Cards are flexible containers that can include text, icons, images, and links.
8
10
9
11
## Basic card
@@ -102,19 +104,7 @@ Use the [Columns component](/components/columns) to organize multiple cards side
102
104
The title displayed on the card
103
105
</ResponseField>
104
106
105
-
<ResponseFieldname="icon"type="string or svg">
106
-
Icon to display on the card. Use a [Font Awesome icon](https://fontawesome.com/icons) name, [Lucide icon](https://lucide.dev/icons) name, or JSX-compatible SVG code wrapped in `icon={}`.
107
-
108
-
For custom SVG icons:
109
-
1. Use the [SVGR converter](https://react-svgr.com/playground/).
110
-
2. Copy the code inside the `<svg/>` tag.
111
-
3. Paste the code into your card.
112
-
4. Adjust height and width as needed.
113
-
</ResponseField>
114
-
115
-
<ResponseFieldname="iconType"type="string">
116
-
Font Awesome icon style: `regular`, `solid`, `light`, `thin`, `sharp-solid`, `duotone`, or `brands`.
Each page is an MDX file, which combines Markdown content with React components to let you create rich, interactive documentation.
9
11
10
12
## Page metadata
@@ -28,10 +30,7 @@ Use metadata to control:
28
30
A short title that displays in the sidebar navigation.
29
31
</ResponseField>
30
32
31
-
<ResponseFieldname="icon"type="string">
32
-
An icon next to your page title in the sidebar. Choose an icon from Font Awesome, Lucide, or use a custom URL. Configure your preferred icon library with the [icons library setting](/settings#param-icons).
33
-
34
-
</ResponseField>
33
+
<IconsOptional />
35
34
36
35
<ResponseFieldname="tag"type="string">
37
36
A tag that appears next to your page title in the sidebar.
The `docs.json` file lets you turn a collection of Markdown files into a navigable, customized documentation site. This required configuration file controls styling, navigation, integrations, and more.
9
11
10
12
Settings in `docs.json` apply globally to all pages.
@@ -146,7 +148,7 @@ See [Themes](themes) for more information.
146
148
Icon library to use throughout your documentation. Defaults to `fontawesome`.
147
149
148
150
<Note>
149
-
You can specify a URL for any individual icon, regardless of the library setting.
151
+
You can specify a URL to an externally hosted icon, path to an icon file in your project, or JSX-compatible SVG code for any individual icon, regardless of the library setting.
150
152
</Note>
151
153
</ResponseField>
152
154
@@ -277,9 +279,7 @@ See [Themes](themes) for more information.
0 commit comments