Templarian / MaterialDesign-Web-Component

MDI Icon web component for use with @mdi/js
https://templarian.github.io/@mdi/web-component/
MIT License
5 stars 1 forks source link

mdi-stack Feature Parity with @mdi/react #2

Open Templarian opened 5 years ago

Templarian commented 5 years ago
Crissov commented 5 years ago

Copying as in #1 for convenience.

Stack <mdi-stack/>

All props below will override the nested <mdi-icon/>'s default prop values.

Prop PropTypes Default Details
size number, string, null null {size * 1.5}rem
horizontal bool, null null Flip Horizontal
vertical bool, null null Flip Vertical
rotate number, null null degrees 0 to 360
color string, null null rgb() / rgba() / #000
spin bool, number, null null true = 2s, -2 counterclockwise, {spin}s

Note: Additional props on <mdi-stack> will apply to the <svg> element. Only in an <mdi-stack> will additional props to the <mdi-icon/> component apply to the nested <path> elements.