Releases: feathericons/feather
Releases · feathericons/feather
v4.0.0
4.0.0 (2017-11-19)
Features
- Update API (f243624f)
Breaking Changes
Each icon in the feather.icons
object is now an Icon
object with a name
, contents
, tags
and attrs
property.
/* BEFORE */
feather.icons.x
// '<line ... /><line ... />'
/* AFTER */
feather.icons.x
// {
// name: 'x',
// contents: '<line ... /><line ... />`,
// tags: ['cancel', 'close', 'delete', 'remove'],
// attrs: {
// class: 'feather feather-x',
// xmlns: 'http://www.w3.org/2000/svg',
// width: 24,
// height: 24,
// viewBox: '0 0 24 24',
// fill: 'none',
// stroke: 'currentColor',
// 'stroke-width': 2,
// 'stroke-linecap': 'round',
// 'stroke-linejoin': 'round',
// }
// }
feather.toSvg()
has been deprecated in favor of feather.icons[name].toSvg()
:
/* BEFORE */
feather.toSvg('x')
/* AFTER */
feather.icons.x.toSvg()
feather.replace()
now copies all attributes on the placeholder element (i.e. <i>
) to the <svg>
tag instead of just class
and id
:
<i data-feather="circle" id="my-circle" class="foo bar" stroke-width="1"></i>
<!--
<i> will be replaced with:
<svg id="my-circle" class="feather feather-circle foo bar" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle></svg>
-->
(f243624f)
v3.3.0
v3.2.2
v3.2.1
v3.2.0
v3.1.0
v3.0.0
v2.4.0
2.4.0 (2017-06-10)
Features
- Add
file-plus
icon (40f5908d) - Add
file-minus
icon (c64304d1) - Add corner arrow icons (3c297deb, closes #62)
- Add
percent
icon (dd9f0ff1, closes #105) - Change
pie-chart
icon (e1107aae, closes #102) - Add
save
icon (dfcd3e3b, closes #39) - Change
copy
icon (915524f6) - Add
users
icon (650c8ab1, closes #81) - Add
sidebar
icon (89ed5ac5) - Add
file-text
icon (f0a061e2, closes #23)
v2.3.0
2.3.0 (2017-06-07)
Features
- Add
film
icon (765b9173, closes #22) - Add
stop-circle
icon (82a62ca0, closes #43) - Add
play-circle
icon (a4a1feda, closes #43) - Add
pause-circle
icons (0b5f9d44, closes #43) - Add
tablet
icon (e0facf6f, closes #52) - Add
smartphone
icon (4fa54b53, closes #51) - Add
shield
icon (8c12a6d8, closes #54) - Add
server
icon (a5a3d7d0, closes #37) - Add
credit-card
icon (612ab72d, closes #18)