500+ SVG Flowbite icons components for Mithril.
npm i -D flowbite-icons-mithrilimport m from "mithril";
import { BugIcon } from "flowbite-icons-mithril/solid";
export const MyComponent = {
view: () => m(BugIcon),
};The following size helpers are available: Default: sm.
| Size | CSS Classes |
|---|---|
| xs | w-3 h-3 |
| sm | w-4 h-4 |
| md | w-5 h-5 |
| lg | w-6 h-6 |
| xl | w-8 h-8 |
Using:
m(BugIcon, {size: "lg"})You can override the default sizes and pass any Tailwind CSS classes like this:
m(BugIcon, {class: "h-24 w-24 text-blue-700 mr-4"})You can pass any extra attributes you want in the normal Mithril way:
m(BugIcon, {"aria-hidden": true})