0.1.4 • Published 1 year ago

solid-material-symbols v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Solid Material Symbols

Using Google Material Symbols as Solid.js components.

🚧 Incomplete

This package is currently under adjustment.

📦 Installation

npm install solid-material-symbols

🎨 Usage

import { MsSettingsSuggestFill } from "solid-material-symbols/outlined/400";

<MsSettingsSuggestFill size={40} class="mx-auto" color="#0099ff" />

You can search for icon names on the icons page of Google Fonts.

⚙️ Configuration

The import path is:

  • type: outlined, rounded, sharp
  • weight: 200, 400, 600
import {...} from "solid-material-symbols/{type}/{weight}"

Components is accepts SVGElement props and additional options.

See types below.

type IconProps = {
  color?: string; // default: "currentColor"
  size?: string | number; // default: "1em"
  title?: string; // default: undefined
} & JSX.SvgSVGAttributes<SVGSVGElement>

💙 Acknowledgments

This package was made with reference to "solid-icons".

thank you.

📜 License

Source code: MIT

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago