Home

Awesome

<img src="./meta/phosphor-mark-tight-yellow.png" width="128" align="right" />

phosphor-leptos

Phosphor is a flexible icon family for interfaces, diagrams, presentations — whatever, really. More icons at phosphoricons.com.

Installation

phosphor-leptos = "0.5.0"

or

cargo add phosphor-leptos

Usage

use leptos::*;
use phosphor_leptos::{IconWeight, Horse, Heart, Cube};
#[component]
fn MyComponent() -> impl IntoView {
    view! {
        <Horse />
        <Heart color="#AE2983" weight=IconWeight::Fill size="32px" />
        <Cube color="teal" weight=IconWeight::Duotone />
    }
}

Props

All of the props are MaybeSignal's so they can be static or reactive.

License

MIT © Phosphor Icons

Knowledge

Contributing

To generate all the icons, run

cargo xtask update