Skip to main content

Crate lepticons_picker

Crate lepticons_picker 

Source
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§

IconCopyFormat
Code format used by the picker’s “copy as” feature.

Constants§

VERSION
Version of the lepticons-picker crate, taken from Cargo.toml at build time.

Functions§

CategoryFilter
Displays all icon categories with their icon counts.
IconGrid
Grid of icon cells with selection, keyboard navigation, and tooltip support.
IconPicker
Inline icon picker with search, category filter, and selectable grid.
IconPickerPopover
Popover that shows an IconPicker when a trigger element is clicked.
IconSearch
Debounced search input for filtering icons.
MruStrip
Horizontal strip of recently-used icons.