lepticons-data
Framework-agnostic Lucide icon data, search, and categories for the Lepticons toolkit.
This crate holds the LucideGlyph enum (one variant per Lucide icon, ~1700 icons), the 42 category features for selective compilation, a cached substring search index, and a category aggregation cache. It has no Leptos or web-sys dependency.
Most users should depend on lepticons instead, which re-exports everything here and adds the Leptos Icon and CustomIcon components. Reach for lepticons-data directly only if you want icon data without a rendering layer -- CLI tools, build scripts, custom lints, or an alternative framework adapter.
Usage
use ;
use IntoEnumIterator;
// Look up an icon by name (returns Option<LucideGlyph>)
let icon = by_name.unwrap;
// Total icon count (cached)
let total = count;
// Iterate all icons enabled by your category features
for glyph in iter
// Search by name + tags + categories (case-insensitive, AND across words)
let results = find;
// All categories with icon counts (cached)
for in all_categories
The Glyph trait abstracts the SVG-content lookup so renderers can accept any glyph type, not only LucideGlyph.
Installation
# All icons (default)
= "0.1"
# Only specific categories
= { = "0.1", = false, = ["arrows", "navigation"] }
Available categories: accessibility, account, animals, arrows, buildings, charts, communication, connectivity, cursors, design, development, devices, emoji, files, finance, food_beverage, gaming, home, layout, mail, math, medical, multimedia, nature, navigation, notifications, people, photography, science, seasons, security, shapes, shopping, social, sports, sustainability, text, time, tools, transportation, travel, weather.
License
MIT