Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/react-font-icon
Ali font icon for react.
https://github.com/afeiship/react-font-icon
ali font fonticons icon react
Last synced: 3 days ago
JSON representation
Ali font icon for react.
- Host: GitHub
- URL: https://github.com/afeiship/react-font-icon
- Owner: afeiship
- Created: 2017-07-26T07:22:24.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-08-28T15:31:31.000Z (6 months ago)
- Last Synced: 2025-01-06T08:09:08.073Z (about 1 month ago)
- Topics: ali, font, fonticons, icon, react
- Language: TypeScript
- Homepage:
- Size: 250 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-font-icon
> Ali font icon for react.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```shell
npm install -S @jswork/react-font-icon
```## usage
1. import css
```scss
@import "~@jswork/react-font-icon/dist/style.css";// or use sass
@import "~@jswork/react-font-icon/dist/style.scss";
```
2. setup / set defaults
```js
import ReactFontIcon from '@jswork/react-font-icon';ReactFontIcon.defaultProps = {
...ReactFontIcon.defaultProps,
prefix: 'ai7icon-',
};
```
3. import js
```js
import ReactFontIcon from '@jswork/react-font-icon';
import './setup.ts';
import '@jswork/react-font-icon/dist/style.scss';function App() {
return (
Build Time: {BUILD_TIME}
);
}export default App;
```## preview
- https://afeiship.github.io/react-font-icon/## license
Code released under [the MIT license](https://github.com/afeiship/react-font-icon/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/react-font-icon
[version-url]: https://npmjs.org/package/@jswork/react-font-icon[license-image]: https://img.shields.io/npm/l/@jswork/react-font-icon
[license-url]: https://github.com/afeiship/react-font-icon/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-font-icon
[size-url]: https://github.com/afeiship/react-font-icon/blob/master/dist/react-font-icon.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/react-font-icon
[download-url]: https://www.npmjs.com/package/@jswork/react-font-icon