radical-ui / objection

Build server-first, highly-interactive, and beautiful web applications in Rust
https://svelte-toolbox.github.io/website/
MIT License
77 stars 4 forks source link

IconButton should allow non-material icons #103

Open Vehmloewff opened 5 years ago

Vehmloewff commented 5 years ago

I am not sure how would be done, but It would be really handy.

Vehmloewff commented 5 years ago

There could be a custom prop that defaults to false.

If custom add the value of icon to the class list on i. Else use the the material icons.

A Fontawesome implementation would look like this:

<IconButton
    custom
    name="fas fa-star"
/>

This adds great flexibility as well as ease of use.