项目作者: konradkalemba

项目描述 :
🎨 Tabler Icons for React
高级语言: JavaScript
项目地址: git://github.com/konradkalemba/tabler-icons-react.git
创建时间: 2020-03-31T16:07:53Z
项目社区:https://github.com/konradkalemba/tabler-icons-react

开源协议:MIT License

下载


[!WARNING]
This package is no longer maintained as there is now an official React components package for Tabler Icons – @tabler/icons-react.

tabler-icons-react

npm version
npm downloads

A library of React components for Tabler Icons — a set of over free 700 open-sourced MIT-licensed icons.

Usage

The package is available via npm and can be installed using npm or yarn:

  1. # npm
  2. npm install tabler-icons-react
  3. # yarn
  4. yarn add tabler-icons-react

After installing the package you can import Tabler Icons as React components as follows:

  1. import { Activity } from 'tabler-icons-react';

Example

  1. import React from 'react';
  2. import { Activity } from 'tabler-icons-react';
  3. export default function Example() {
  4. return (
  5. <div>
  6. <Activity size={48} color="red" ></Activity>
  7. </div>
  8. );
  9. }

Docs

Every icon component accepts following props:

Prop Default
size 24
color 'currentColor'

License

This project is MIT licensed.