File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,14 @@ You can group cards in [columns](/components/columns).
9292
9393<ResponseField name = " icon" type = " string or svg" >
9494 A [ Font Awesome icon] ( https://fontawesome.com/icons ) , [ Lucide
95- icon] ( https://lucide.dev/icons ) , or SVG code in ` icon={} `
95+ icon] ( https://lucide.dev/icons ) , or JSX compatible SVG code in ` icon={} ` .
96+
97+ To generate JSX compatible SVG code:
98+
99+ 1 . Use the [ SVGR converter] ( https://react-svgr.com/playground/ ) .
100+ 2 . Copy the code inside the ` <svg/> ` tag.
101+ 3 . Paste the code into your card. Make sure to only copy and paste the code inside the ` <svg/> ` tag.
102+ 4 . You may need to decrease the height and width to make the image fit.
96103</ResponseField >
97104
98105<ResponseField name = " iconType" type = " string" >
Original file line number Diff line number Diff line change @@ -39,17 +39,6 @@ export function openSearch(e) {
3939 </Accordion >
4040
4141
42- <Accordion title = " Issues adding SVG to a card" icon = " image" >
43- We support a specific type of SVG, called JSX, and as such the image will need to be converted.
44-
45- 1 . Use the [ SVGR converter] ( https://react-svgr.com/playground/ ) to generate JSX compatible SVG code.
46- 2 . Copy the code inside the ` <svg/> ` tag.
47-
48- ![ Output from the SVGR converter with the code inside <svg > and </svg > tags highlighted.] ( /images/svg-jsx.png )
49-
50- 3 . Paste the code into your card. Make sure you only copy and paste the code inside the ` <svg/> ` tag.
51- 4 . You may need to decrease the height and width to make the image fit.
52- </Accordion >
5342</AccordionGroup >
5443
5544<Info >
You can’t perform that action at this time.
0 commit comments