What problem does it solve?
The pine-icons Skill Unit provides a solution to embedding and rendering icons efficiently in pocopine applications, addressing the challenge of selecting, managing, and integrating icons across the application without bloat.
Core Features & Use Cases
- Efficient Icon Management: Embed and use icons through two approaches - compile-time via the
icon! proc macro for Rust handlers, and template-driven with register_icons! for .poco templates.
- Variability and Customization: Supports different icon styles (
outline or filled) and sizes.
- Reactive Usage: Allows reactive selection of icons in
.poco templates for dynamic theme switching.
- Tree Shaking: Ensures only required icons are included in the final binary for efficient usage of resources.
Quick Start
To register and use an icon, execute: 'pineIcons register [name] [style]', for example, 'pineIcons register star filled'.