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
I'm trying to add the OpenAI logo as a nav bar item icon.
I think Font Awesome are still working on adding it to the library, so wanted to add the SVG myself.
Are custom SVG icons in the nav supported?
I see a SVG icon via a card prop docs/integrations/analytics.mdx as described in the docs,
but couldn't find any examples for inserting it into the nav via the mdx header like:
---
title: 'Open AI'
description: ''
icon: "<svg><path d='M11.9442 13.2715L4.12777 2.06738L1.26172 15.095L11.9442 13.2715Z'
stroke='#888888'/></svg>"
---
# test SVG path, not the actual logo SVG ^
The wierd part is when I try this, I see some SVG in the DOM but it renders as a square like this:
I thought maybe the SVG I'm using is bad, so tried a very simple path instead.
This is the rendered el:
Lastly, I found global settings to change the font library, but I'm not sure how to use it https://mintlify.com/docs/settings/global#param-icons
I'm using FA everywhere else in my docs, and would prefer not to switch to another font lib.
Am I missing anything?
The text was updated successfully, but these errors were encountered:
Hi there,
I love Mintlify!
I'm trying to add the OpenAI logo as a nav bar item icon.
I think Font Awesome are still working on adding it to the library, so wanted to add the SVG myself.
Are custom SVG icons in the nav supported?
I see a SVG icon via a card prop
docs/integrations/analytics.mdx
as described in the docs,but couldn't find any examples for inserting it into the nav via the
mdx
header like:The wierd part is when I try this, I see some SVG in the DOM but it renders as a square like this:
I thought maybe the SVG I'm using is bad, so tried a very simple path instead.
This is the rendered el:
Lastly, I found global settings to change the font library, but I'm not sure how to use it
https://mintlify.com/docs/settings/global#param-icons
I'm using FA everywhere else in my docs, and would prefer not to switch to another font lib.
Am I missing anything?
The text was updated successfully, but these errors were encountered: