Skip to content

Commit

Permalink
style: format source code
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Aug 14, 2023
1 parent 47c97fe commit 5a0ae3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ edge.use(edgeIconify)
That's all you need to do and you are ready to render SVG icons within your edge templates.

## Options

You can pass some options when initializing the plugin for applying a default style to your icons.

```ts
edge.use(edgeIconify, {
defaultClass: 'text-red hover:text-green', // Class applied to all icons
scale: 1.8 // Scale of icons in em
scale: 1.8, // Scale of icons in em
})
```

Expand Down
4 changes: 3 additions & 1 deletion src/svg_generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export class SvgGenerator {
attributes.class = className
}

return `<svg ${edgeGlobals.html.attrs({ ...svg.attributes, ...attributes }).value}>${svg.body}</svg>`
return `<svg ${edgeGlobals.html.attrs({ ...svg.attributes, ...attributes }).value}>${
svg.body
}</svg>`
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"rootDir": "./",
"outDir": "./build"
}
}
}

0 comments on commit 5a0ae3a

Please sign in to comment.