Part of the Blinc UI Framework
This crate is a component of Blinc, a GPU-accelerated UI framework for Rust. For full documentation and guides, visit the Blinc documentation.
Lucide icon library for Blinc UI.
blinc_icons provides 1000+ icons from the Lucide icon set as compile-time constants. Icons are stored as SVG path strings for zero runtime cost.
- 1000+ Icons: Complete Lucide icon set
- Zero Cost: Dead code elimination removes unused icons
- SVG Output: Generate complete SVG strings
- Customizable: Custom stroke width and colors
use blinc_icons::icons;
use blinc_layout::prelude::*;
// Use in layout
svg(icons::CHECK)
.size(24.0, 24.0)
.color(Color::GREEN)
svg(icons::ARROW_RIGHT)
.size(16.0, 16.0)
.color(Color::BLUE)Icons are organized by category. Here are some examples:
icons::ARROW_LEFT
icons::ARROW_RIGHT
icons::ARROW_UP
icons::ARROW_DOWN
icons::CHEVRON_LEFT
icons::CHEVRON_RIGHT
icons::MENU
icons::Xicons::CHECK
icons::PLUS
icons::MINUS
icons::EDIT
icons::TRASH
icons::COPY
icons::DOWNLOAD
icons::UPLOAD
icons::SEARCH
icons::SETTINGSicons::PLAY
icons::PAUSE
icons::STOP
icons::VOLUME
icons::VOLUME_OFF
icons::IMAGE
icons::VIDEO
icons::MUSICicons::MAIL
icons::MESSAGE_SQUARE
icons::PHONE
icons::SEND
icons::BELL
icons::AT_SIGNicons::FILE
icons::FOLDER
icons::FOLDER_OPEN
icons::FILE_TEXT
icons::FILE_CODE
icons::SAVEicons::USER
icons::USERS
icons::USER_PLUS
icons::USER_MINUS
icons::LOG_IN
icons::LOG_OUTuse blinc_icons::{icons, to_svg, to_svg_colored};
// Basic SVG (24x24, stroke-width 2)
let svg_string = to_svg(icons::CHECK);
// <svg xmlns="..." viewBox="0 0 24 24" ...>...</svg>
// Custom stroke width
let svg_string = to_svg_with_stroke(icons::CHECK, 1.5);
// With custom color
let svg_string = to_svg_colored(icons::CHECK, "#00ff00");All icons are &'static str constants containing SVG path data:
// Example icon definition
pub const CHECK: &str = r#"<path d="M20 6 9 17l-5-5"/>"#;See the Lucide Icons website for the complete list of available icons. All icon names are converted to SCREAMING_SNAKE_CASE:
arrow-right→ARROW_RIGHTchevron-down→CHEVRON_DOWNfile-text→FILE_TEXT
MIT OR Apache-2.0
Icons are from Lucide under ISC License.