Feature Request: Expose `strokeWidth` as an (optional) prop - JavaScript react-feather
Description
On the feather icons website there are "customization" controls for previewing the icons. The options for the controls are: * Size * Stroke width * Color
Currently, only size
and color
are exposed as props. It looks like the strokeWidth
for each icon is being hard-coded as 2
(example).
This seems like a fairly straightforward adjustment. If you're accepting PRs, I'd be happy to add it!
Asked Oct 06 '21 20:10
zstix
1 Answer:
You can pass strokeWidth as props. In the example on line 17, { ...rest }
is used. So any props (other than exposed props) you pass are applied to the icon. If you pass strokeWidth as a prop it'll override the previously defined attribute of 2.
1
Answered Jan 10 '21 at 06:16
dexterthemsb
Read next
- documentation Update remark dependencies - JavaScript
- gdal Unable to replace a RAT in GTiff C++
- Crash when combined with react-native-picker/picker and problems in navigation in 3.0.0 and 3.0.1 - react-native-tab-view
- Add content object in @ApiBody - TypeScript swagger
- Feature request: [Strato] set custom MX Record - Go ddns-updater
- usingFastIndex: indexes may be created while restore is in progress - C mydumper
- PDFObject Support for setting title attribute on embed element - JavaScript
- getblocktemplate doesn't return 'vbavailable' and 'vbrequired' fields for BIP9 voting - bitcoin-abc