Expand description
Embeddable icon picker components for Leptos, powered by Lucide icons.
Provides searchable, filterable icon selection components that can be dropped into forms, editors, and dashboards.
§Quick Start
ⓘ
use lepticons_picker::IconPickerPopover;
use lepticons::LucideGlyph;
use leptos::prelude::*;
let (icon, set_icon) = signal(None::<LucideGlyph>);
view! {
<IconPickerPopover
selected=icon
on_select=Callback::new(move |g| set_icon.set(Some(g)))
>
<button>"Choose icon"</button>
</IconPickerPopover>
}Modules§
- mru
- Most-recently-used icon list backed by
localStorage.
Enums§
- Icon
Copy Format - Code format used by the picker’s “copy as” feature.
Constants§
- VERSION
- Version of the
lepticons-pickercrate, taken fromCargo.tomlat build time.
Functions§
- Category
Filter - Displays all icon categories with their icon counts.
- Icon
Grid - Grid of icon cells with selection, keyboard navigation, and tooltip support.
- Icon
Picker - Inline icon picker with search, category filter, and selectable grid.
- Icon
Picker Popover - Popover that shows an
IconPickerwhen a trigger element is clicked. - Icon
Search - Debounced search input for filtering icons.
- MruStrip
- Horizontal strip of recently-used icons.