Skip to content

Commit

Permalink
docs(icon): fix minor typos
Browse files Browse the repository at this point in the history
  • Loading branch information
eTallang committed Dec 4, 2024
1 parent e0fe8fe commit 075984f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/icon/Overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function with an object containing your icons, as such:

<Source
code={`
import { addIcons } from '@computas/designsystem/icon';
import { addIcons } from '@computas/designsystem/icon';
// import the icon data (SVG string)
import download from '@computas/designsystem/icon/svg/download?raw';
Expand All @@ -31,7 +31,7 @@ addIcons({
download: { svg: download }
});
`}
language="ts"
language="typescript"
dark
/>

Expand All @@ -46,7 +46,7 @@ import '@computas/designsystem/icon';
// React
import { CxIcon } from '@computas/designsystem/icon/react';
`}
language="ts"
language="typescript"
dark
/>

Expand All @@ -60,7 +60,7 @@ Then simply use the component and provide the name of the icon you wish to displ
// React
<CxIcon name="download" />
`} language="ts" dark />
`} language="typescript" dark />

If you try to use an icon that is not registered, the component throws an error.

Expand Down

0 comments on commit 075984f

Please sign in to comment.