【文件属性】:
文件名称:react-bootstrap-icons:用于Bootstrap图标的React组件
文件大小:954KB
文件格式:ZIP
更新时间:2021-01-31 17:55:55
react svg bootstrap icons BootstrapJavaScript
React Bootstrap图标
全新的用作React组件。
当前v1.3.0,有1265个图标!
安装
npm install react-bootstrap-icons --save
要么
yarn add react-bootstrap-icons
用法
import React from ' react ' ;
import { ArrowRight } from ' react-bootstrap-icons ' ;
export default function App () {
return < ArrowRight>;
}
可以使用内置道具配置图标:
< ArrowRight xss=removed xss=removed>
您可以传递所需的全能道具:
< ArrowRight xss=removed>
您还可以包括整个图标包:
import React from ' react ' ;
import * as Icon from ' react-bootstrap-icons ' ;
expo