flowbite-icons-mithril

0.6.0 • Public • Published

flowbite-icons-mithril

500+ SVG Flowbite icons components for Mithril.

Installation

npm i -D flowbite-icons-mithril

Usage

import m from "mithril";
import { BugIcon } from "flowbite-icons-mithril/solid";

export const MyComponent = {
  view: () => m(BugIcon),
};

Attributes

Size

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"})

Class

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"})

Attributes

You can pass any extra attributes you want in the normal Mithril way:

m(BugIcon, {"aria-hidden": true})

Package Sidebar

Install

npm i flowbite-icons-mithril

Weekly Downloads

6

Version

0.6.0

License

MIT

Unpacked Size

888 kB

Total Files

9

Last publish

Collaborators

  • alexferl