Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rodshtein committed Jan 3, 2023
1 parent ed8c74d commit 36eb6fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The plugin compile svg files into a sprite and render to the app template
⚠️ For now sprite will compile once on start app in dev mode or on build. If you want add more symbols to sprite → restart the app.<br>

### 6. Add link to the specific symbol on your page
Symbols id's will begin with the prefix `svg` + `subfolder name` + `file name`
Symbols id's will begin with the prefix `svg--[subfolder]-[file-name]`
👉 You can change symbol prefix by `symbolPrefix` option.

```html
Expand Down Expand Up @@ -93,15 +93,15 @@ sveltekitSprite({
```
### symbolPrefix
From the prefix begin all id of symbols:
`[symbolPrefix]--[path-path]-[file-name]`
`[symbolPrefix]--[subfolder]-[file-name]`
```javascript
sveltekitSprite({
symbolPrefix: 'svg',
}),
```
### stylePrefix
All id's in the svg files will be replaced by he prefix and file name:
`[stylePrefix]--[path-path]-[file-name]`
`[stylePrefix]--[subfolder]-[file-name]`

```javascript
sveltekitSprite({
Expand Down

0 comments on commit 36eb6fa

Please sign in to comment.