Boxicons开源 Web 图标库
Boxicons 是一个精心设计的开源图标集,包含 1500 多个图标,可丰富您的网站/应用程序体验。
安装
要通过 npm 安装,只需执行以下操作:
$ npm install boxicons --save
导入模块
import 'boxicons';
用法
通过 CSS 使用
- 将样式表包含在文档的
<head>
<head>
<link rel="stylesheet" href="boxicons.min.css">
</head>
可以使用远程版本
<head>
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css">
<!-- or -->
<link rel="stylesheet"
href="https://unpkg.com/boxicons@latest/css/boxicons.min.css">
</head>
- 要在页面上使用图标,请添加类“bx”和单独的类,图标名称的前缀为“bx-”用于常规图标,“bxs-”用于实体图标,“bxl-”用于徽标:
<i class="bx bx-hot"></i>
<i class="bx bxs-hot"></i>
<i class="bx bxl-facebook-square"></i>
通过 Web 组件使用
Boxicons 包含一个自定义元素,使图标的使用变得简单高效。要使用它,请将box-icon-element.js
文件添加到页面:
<script src="https://unpkg.com/boxicons@2.1.3/dist/boxicons.js"></script>
要使用图标,请将<box-icon>
元素添加到应显示图标的位置:
<box-icon name="hot"></box-icon>
要使用实体图标或徽标,请在名称前添加实体或徽标属性类型
<box-icon type="solid" name="hot"></box-icon>
<box-icon type="logo" name="facebook-square"></box-icon>
<box-icon>
自定义元素支持以下属性:
<box-icon
type = "regular|solid|logo"
name="adjust|alarms|etc...."
color="blue|red|etc..."
size="xs|sm|md|lg|cssSize"
rotate="90|180|270"
flip="horizontal|vertical"
border="square|circle"
animation="spin|tada|etc..."
pull = "left|right"
></box-icon>
评论
inoIconViewAndroid 开源图标库
IonIconView 是基于ionicons.com提供的出色图标。里面包含了常用的android风格的图标ios7风格的图标以及一些社会化分享图标,总共500个左右。使用方法:添加库和依赖到你的项
inoIconViewAndroid 开源图标库
0
lyicon开源字体图标库
lyicon是一套图标众多、风格清新、更适合国人使用的开源字体图标库,100%兼容fontawesome的图标,细化图标,把实心图标都改成空心,更加方便APP及现代化网页使用。特性:1、实心图标空心化
lyicon开源字体图标库
0
Remix Icon开源图标库
RemixIcon是一套面向设计师和开发者的开源图标库。图标风格为中性风格,适用于各种用户群体的项目。与拼凑混搭的图标库不同,RemixIcon的每一枚图标都是由设计师按照统一规范精心绘制的,并确保每
Remix Icon开源图标库
0