Icons System
Icon management and rendering system, integrated with Material Design Icons (MDI).
Overview
hikari-icons provides:
- 1000+ Icons - Complete Material Design Icons (MDI) collection
- Type Safe - Enum-based icon names
- SVG Rendering - Client-side and server-side rendering
- Runtime Loading - On-demand icon SVG loading
Icon Component
Basic Usage
rust
1
2
3
4
5
6
7
8
9
use ;
rsx!
Available Icons
rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Props
| Property | Type | Default | Description |
|---|---|---|---|
| icon | MdiIcon | - | Icon type |
| size | u32 | 24 | Icon size |
| color | &str | - | Color |
Runtime Loading
Client-side Rendering
rust
1
2
3
4
5
6
use runtime;
// Asynchronously load icon SVG
async
Server-side Rendering
rust
1
2
3
4
5
6
use server;
// Server-side render icon
API Reference
Icon
rust
1
2
3
4
5
6
7
8
MdiIcon
rust
1
2
3
runtime
rust
1
2
3
server
rust
1
2
3
Integration with Other Systems
- Components - Icons used in Button, Input, and other components
- Render-service - Static icon file service
- Theme - Icon colors inherit from theme
Related Systems
- Components - Components using icons
- Palette - Icon colors