Collection Open source Svg icons and generate React Vue component, now collect jamicons humbleicons
Note that this library currently only supports Vue 3.
First, install cmicons-vue
from npm:
npm install cmicons-vue
Now each icon can be imported individually as a Vue component:
<template>
<div>
<SearchIcon style="color:red"/>
<p>...</p>
</div>
</template>
<script>
import { SearchIcon } from 'cmicons-vue/jam'
export default {
components: { SearchIcon }
}
</script>
<template>
<div>
<SearchIcon style="color:red"/>
<p>...</p>
</div>
</template>
<script>
import { SearchIcon } from 'cmicons-vue/humble'
export default {
components: { SearchIcon }
}
</script>
First, install cmicons-react
from npm:
npm install cmicons-react
Now each icon can be imported individually as a React component:
import { SearchIcon } from 'cmicons-react/jam'
function MyComponent() {
return (
<div>
<SearchIcon />
<p>...</p>
</div>
)
}
import { SearchIcon } from 'cmicons-react/humble'
function MyComponent() {
return (
<div>
<SearchIcon />
<p>...</p>
</div>
)
}
This library is MIT licensed.