0.0.6 • Published 8 months ago

scienceicons v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

React

First, install @scienceicons/react from npm:

npm install @scienceicons/react

Now each icon can be imported individually as a React component:

import { OpenAccessIcon } from '@scienceicons/react/24/solid'

function MyComponent() {
  return (
    <div>
      <OpenAccessIcon className="h-6 w-6 text-blue-500" />
      <p>...</p>
    </div>
  )
}

The 24x24 outline icons can be imported from @scienceicons/react/24/outline, the 24x24 solid icons can be imported from @scienceicons/react/24/solid, and the 20x20 solid icons can be imported from @scienceicons/react/20/solid.

Icons use an upper camel case naming convention and are always suffixed with the word Icon.

Browse the full list of icon names on UNPKG

Vue

Note that this library currently only supports Vue 3.

First, install @scienceicons/vue from npm:

npm install @scienceicons/vue

Now each icon can be imported individually as a Vue component:

<template>
  <div>
    <OpenAccessIcon class="h-6 w-6 text-blue-500" />
    <p>...</p>
  </div>
</template>

<script>
import { OpenAccessIcon } from '@scienceicons/vue/24/solid'

export default {
  components: { OpenAccessIcon },
}
</script>

The 24x24 outline icons can be imported from @scienceicons/vue/24/outline, the 24x24 solid icons can be imported from @scienceicons/vue/24/solid, and the 20x20 solid icons can be imported from @scienceicons/vue/20/solid.

Icons use an upper camel case naming convention and are always suffixed with the word Icon.

Browse the full list of icon names on UNPKG

License

This library is based on heroicons, see MIT license.

License

This library is MIT licensed.

0.0.6

8 months ago

0.0.3

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.2

1 year ago

0.0.1

1 year ago