0.1.0 • Published 2 years ago

@erbium/iconsax v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@erbium/iconsax

A small and super fast package for iconsax web components with lit

Examples

<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>@erbium/iconsax</title>
    <script type="module" src="https://cdn.jsdelivr.net/npm/@erbium/iconsax/+esm"></script>
    <style>
      er-iconsax {
        color: red;
        font-size: 24px; /* default */
      }
    </style>
  </head>

  <body>
    <er-iconsax name="home"></er-iconsax>
    <er-iconsax name="home" category="bold"></er-iconsax>
    <er-iconsax name="home" category="broken"></er-iconsax>
    <er-iconsax name="home" category="bulk"></er-iconsax>
    <er-iconsax name="home" category="linear"></er-iconsax>
    <er-iconsax name="home" category="outline"></er-iconsax>
    <er-iconsax name="home" category="twotone"></er-iconsax>
  </body>
</html>

If the category attribute does not receive a value, its default value is "linear"

<er-iconsax name="home"></er-iconsax>

API

Attributes

#attributerequiretypedescription
1nameyesstringicon name
2categorynostringIcon category. Choose from the list. default: "linear"
3sizeno"sm" or "lg"sm = 18px and lg = 32px

CSS Variables

#variable namedefaultdescription
1--er-iconsax-sm-fs18pxIcon size provided the attribute "size" is equal to "sm"
2--er-iconsax-lg-fs32pxIcon size provided the attribute "size" is equal to "lg"

But when the attribute does not get a size, the icon size is 24px

Icon Categories

  • bold
  • broken
  • bulk
  • linear (default).
  • outline
  • twotone