Skip to content

Commit

Permalink
chore(): fixed doc typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Yousuf Jawwad committed Feb 25, 2024
1 parent 5788243 commit b3ed5de
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,39 +45,39 @@ All icons are imported from a single file, where [ICON SLUG] is replaced by a ca
## Basic example

```svelte
// Import a specific icon by its slug as:
// import { si[ICON SLUG] } from 'simple-icons'
<!-- Import a specific icon by its slug as: -->
<!-- import { Si[ICON SLUG] } from 'simple-icons'; -->
<script>
import { siReact, siSvelte, siDocker } from "@icons-pack/svelte-simple-icons";
import { SiReact, SiSvelte, SiDocker } from "@icons-pack/svelte-simple-icons";
</script>
<siSvelte color="#FF3E00" size={90} />
<SiSvelte color="#FF3E00" size={90} />
<siReactJs color="#61DAFB" size={50} />
<SiReactJs color="#61DAFB" size={50} />
<siDocker />
<SiDocker />
```

## Change title

```svelte
<!-- title default "Svelte" -->
<script>
import { siSvelte } from "@icons-pack/svelte-simple-icons";
import { SiSvelte } from "@icons-pack/svelte-simple-icons";
</script>
<siSvelte title="My title" />
<SiSvelte title="My title" />
```

## Custom styles

```svelte
<script>
import { siSvelte } from "@icons-pack/svelte-simple-icons";
import { SiSvelte } from "@icons-pack/svelte-simple-icons";
</script>
<siSvelte class="myStyle" />
<SiSvelte class="myStyle" />
<style>
.myStyle {
Expand Down

0 comments on commit b3ed5de

Please sign in to comment.