phosphor-leptos
Phosphor is a flexible icon family for interfaces, diagrams, presentations — whatever, really. More icons at phosphoricons.com.
Installation
or
Usage
use *;
use ;
Props
All of the props are MaybeSignal's so they can be static or reactive.
- color?:
string– Icon stroke/fill color. Can be any CSS color string, includinghex,rgb,rgba,hsl,hsla, named colors, or the specialcurrentColorvariable. - size?:
number | string– Icon height & width. As with standard React elements, this can be a number, or a string with units inpx,%,em,rem,pt,cm,mm,in. - weight?:
IconWeight– Icon weight/style. Can also be used, for example, to "toggle" an icon's state: a rating component could use Stars withIconWeight::Regularto denote an empty star, andIconWeight::Fillto denote a filled star. - mirrored?:
boolean– Flip the icon horizontally. Can be useful in RTL languages where normal icon orientation is not appropriate.
License
MIT © Phosphor Icons