Skip to content

Commit 156c091

Browse files
authored
docs: Add info about SVG attributes
1 parent 179b482 commit 156c091

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,14 @@ Returns an SVG string.
275275
| --------- | ------ | ----------- |
276276
| `attrs` (optional) | Object | Key-value pairs in the `attrs` object will be mapped to HTML attributes on the `<svg>` tag (e.g. `{ foo: 'bar' }` maps to `foo="bar"`). All default attributes on the `<svg>` tag can be overridden with the `attrs` object. |
277277

278+
> **Hint:** You might find these SVG attributes helpful for manipulating icons:
279+
> * [`color`](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/color)
280+
> * [`width`](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/width)
281+
> * [`height`](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/height)
282+
> * [`stroke-width`](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-width)
283+
> * [`stroke-linecap`](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap)
284+
> * [`stroke-linejoin`](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linejoin)
285+
278286
#### Usage
279287

280288
```js

0 commit comments

Comments
 (0)