在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):07akioni/xicons开源软件地址(OpenSource Url):https://github.com/07akioni/xicons开源编程语言(OpenSource Language):JavaScript 71.1%开源软件介绍(OpenSource Introduction):xiconsEnglish · 中文 Include SVG Vue/React components integrated from Util icon component for customizing color & size is also provided. Icons Preview & SearchInstallationIcons Installation# Install packages on your demand
# For react
npm i -D @ricons/fluent
npm i -D @ricons/ionicons4
npm i -D @ricons/ionicons5
npm i -D @ricons/antd
npm i -D @ricons/material
npm i -D @ricons/fa # font awesome
npm i -D @ricons/tabler
npm i -D @ricons/carbon
# For vue3
npm i -D @vicons/fluent
npm i -D @vicons/ionicons4
npm i -D @vicons/ionicons5
npm i -D @vicons/antd
npm i -D @vicons/material
npm i -D @vicons/fa # font awesome
npm i -D @vicons/tabler
npm i -D @vicons/carbon
# For vue2
npm i -D @v2icons/fluent
npm i -D @v2icons/ionicons4
npm i -D @v2icons/ionicons5
npm i -D @v2icons/antd
npm i -D @v2icons/material
npm i -D @v2icons/fa # font awesome
npm i -D @v2icons/tabler
npm i -D @v2icons/carbon
# For SVG file
npm i -D @sicons/fluent
npm i -D @sicons/ionicons4
npm i -D @sicons/ionicons5
npm i -D @sicons/antd
npm i -D @sicons/material
npm i -D @sicons/fa # font awesome
npm i -D @sicons/tabler
npm i -D @sicons/carbon Icon Utils InstallationIcon utils provide a icon wrapper component for customizing color & size of the inner SVG icon. npm i -D @ricons/utils # react
npm i -D @vicons/utils # vue3
npm i -D @v2icons/utils # vue2 UsageFor Vue3<script>
import { Money16Regular } from '@vicons/fluent'
// or
import Money16Regular from '@vicons/fluent/Money16Regular'
// You can directly use the SVG component
// or wrap it in an Icon component from @vicons/utils
import { Icon } from '@vicons/utils'
export default {
components: {
Icon,
Money16Regular
}
}
</script>
<template>
<Icon>
<Money16Regular />
</Icon>
</template> Q & A
import type { Component } from 'vue'
function f(iconComponent: Component) {
// ...
} For Reactimport { Money16Regular } from '@ricons/fluent'
// or
import Money16Regular from '@ricons/fluent/Money16Regular'
// You can directly use the SVG component
// or wrap it in an Icon component from @ricons/utils
import { Icon } from '@ricons/utils'
function App() {
return (
<Icon>
<Money16Regular />
</Icon>
)
} For Vue2<script>
import { Money16Regular } from '@v2icons/fluent'
// or
import Money16Regular from '@v2icons/fluent/Money16Regular'
// You can directly use the SVG component
// or wrap it in an Icon component from @v2icons/utils
import { Icon } from '@v2icons/utils'
export default {
components: {
Icon,
Money16Regular
}
}
</script>
<template>
<Icon>
<Money16Regular />
</Icon>
</template> For SVG<img src="@sicons/fluent/Money16Regular.svg" /> Utils APIIcon APIAn icon component (in
For example: import { Icon } from '@ricons/utils' // react
import { Icon } from '@vicons/utils' // vue3
import { Icon } from '@v2icons/utils' // vue2
// render it
;<Icon color="green" size="48">
<SomeIcon />
</Icon> IconConfigProvider APIIconConfigProvider will affect all the descendant Icons' default prop value.
For example: import { IconConfigProvider, Icon } from '@ricons/utils' // react
import { IconConfigProvider, Icon } from '@vicons/utils' // vue3
import { IconConfigProvider, Icon } from '@v2icons/utils' // vue2
// render it
;<IconConfigProvider color="green" size="48">
<App>
<Icon>
<SomeIcon />
</Icon>
<App/>
</IconConfigProvider> Common Issues
|
package | version | description |
---|---|---|
@ricons/utils | Util icon components for react. | |
@vicons/utils | Util icon components for vue3. | |
@v2icons/utils | Util icon components for vue2. |
package | version |
---|---|
@vicons/fluent | |
@vicons/ionicons4 | |
@vicons/ionicons5 | |
@vicons/antd | |
@vicons/material | |
@vicons/fa | |
@vicons/tabler | |
@vicons/carbon |
package | version |
---|---|
@ricons/fluent | |
@ricons/ionicons4 | |
@ricons/ionicons5 | |
@ricons/antd | |
@ricons/material | |
@ricons/fa | |
@ricons/tabler | |
@ricons/carbon |
package | version |
---|---|
@v2icons/fluent | |
@v2icons/ionicons4 | |
@v2icons/ionicons5 | |
@v2icons/antd | |
@v2icons/material | |
@v2icons/fa | |
@v2icons/tabler | |
@v2icons/carbon |
package | version |
---|---|
@sicons/fluent | |
@sicons/ionicons4 | |
@sicons/ionicons5 | |
@sicons/antd | |
@sicons/material | |
@sicons/fa | |
@sicons/tabler | |
@sicons/carbon |
Icon Set | License |
---|---|
ant-design-icons |
MIT |
fluentui-system-icons |
MIT |
Font-Awesome |
CC BY 4.0 License |
ionicons |
MIT |
material-design-icons |
Apache 2 |
tabler-icons |
MIT |
carbon |
Apache 2 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论