# Free Icons
This crate will generate helper data structures for accessing icons. It is highly inspired by [dioxus-free-icons](https://github.com/nissy-dev/dioxus-free-icons). Because I just need pure SVG icons to be embedded in HTML without any client-side javascript, I decided to write this crate.
## Usage
If you need raw SVG icons without any modification, you can use the general `get` function:
```rust
// generate a heroicon
let icon = free_icons::get(IconType::Heroicons(Heroicons::Outline), "academic-cap");
assert_eq!(icon, r###""###);
```
If you want to add extra attributes to the SVG icon, you could use the specific function (currently bootstrap, feather, font_awesome, heroicons, ionicons, octicons are supported):
```rust
```rust
// generate a bootstrap alarm icon
let attrs = IconAttrs::default()
.class("h-8 w-8 text-white")
.fill("none")
.stroke_color("currentColor");
let icon = free_icons::bootstrap("alarm", true, &attrs);
assert_eq!(icon, r###""###);
```