Components / Icon
Icon
Vector icon from the built-in Lucide set.
Example
The component itself, running in WebAssembly, beside its code in a playground. Try it.
Code
use ravenrs::prelude::*;
fn icon() -> impl View {
HStack::new((
Icon::new(IconName::Sparkles).size(24.0).color(Semantic::Accent),
Icon::new(IconName::Bell).size(24.0),
Icon::new(IconName::Check).size(24.0).color(Semantic::Success),
))
.spacing(12.0)
}