From 156c0919c985ec8ff01ce846e372c18ab4e45eae Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Mon, 21 May 2018 14:04:00 -0700 Subject: [PATCH] docs: Add info about SVG attributes --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 4ce992c..c7a02e2 100644 --- a/README.md +++ b/README.md @@ -275,6 +275,14 @@ Returns an SVG string. | --------- | ------ | ----------- | | `attrs` (optional) | Object | Key-value pairs in the `attrs` object will be mapped to HTML attributes on the `` tag (e.g. `{ foo: 'bar' }` maps to `foo="bar"`). All default attributes on the `` tag can be overridden with the `attrs` object. | +> **Hint:** You might find these SVG attributes helpful for manipulating icons: +> * [`color`](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/color) +> * [`width`](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/width) +> * [`height`](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/height) +> * [`stroke-width`](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-width) +> * [`stroke-linecap`](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap) +> * [`stroke-linejoin`](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linejoin) + #### Usage ```js