diff --git a/components/tabs.mdx b/components/tabs.mdx index 262291d28..7aa270a1e 100644 --- a/components/tabs.mdx +++ b/components/tabs.mdx @@ -7,9 +7,10 @@ icon: "panel-top" Use tabs to organize content into multiple panels that users can switch between. You can add any number of tabs and include other components inside each tab. - - ☝️ Welcome to the content that you can only see inside the first Tab. - You can add any number of components inside of tabs. + + ☝️ Welcome to the content that you can only see inside the first tab. + + You can add any number of components inside of tabs. For example, a code block: ```java HelloWorld.java class HelloWorld { public static void main(String[] args) { @@ -18,18 +19,22 @@ Use tabs to organize content into multiple panels that users can switch between. } ``` - - ✌️ Here's content that's only inside the second Tab. + + ✌️ Here's content that's only inside the second tab. + + This one has a icon! - - 💪 Here's content that's only inside the third Tab. + + 💪 Here's content that's only inside the third tab. ````mdx Tabs example - - ☝️ Welcome to the content that you can only see inside the first Tab. + + ☝️ Welcome to the content that you can only see inside the first tab. + + You can add any number of components inside of tabs. For example, a code block: ```java HelloWorld.java class HelloWorld { public static void main(String[] args) { @@ -38,11 +43,13 @@ Use tabs to organize content into multiple panels that users can switch between. } ``` - - ✌️ Here's content that's only inside the second Tab. + + ✌️ Here's content that's only inside the second tab. + + This one has a icon! - - 💪 Here's content that's only inside the third Tab. + + 💪 Here's content that's only inside the third tab. ```` @@ -52,3 +59,11 @@ Use tabs to organize content into multiple panels that users can switch between. The title of the tab. Short titles are easier to navigate. + + + A [Font Awesome](https://fontawesome.com/icons) icon, [Lucide](https://lucide.dev/icons) icon, URL to an icon, or relative path to an icon. + + + + For Font Awesome icons only: One of `regular`, `solid`, `light`, `thin`, `sharp-solid`, `duotone`, `brands`. + diff --git a/navigation.mdx b/navigation.mdx index e1b0c7632..e6c6f60c0 100644 --- a/navigation.mdx +++ b/navigation.mdx @@ -115,6 +115,7 @@ documentation. "tabs": [ { "tab": "API References", + "icon": "square-terminal", "pages": [ "api-reference/get", "api-reference/post", @@ -123,6 +124,7 @@ documentation. }, { "tab": "SDKs", + "icon": "code", "pages": [ "sdk/fetch", "sdk/create", @@ -131,6 +133,7 @@ documentation. }, { "tab": "Blog", + "icon": "newspaper", "href": "https://external-link.com/blog" } ]