-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod.ts
53 lines (52 loc) · 1.28 KB
/
mod.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* *
* # Preact + deno convertion of react-icons
*
* This library is port from [react-icons](https://www.npmjs.com/package/react-icons) built for deno fresh projects.
*
* ## setup
*
* deno add @preact-icons/ai
*
* Now just use it like in a regular `React` app, but with `Preact`
*
* ## sample
*
* ```tsx
* import { AiFillAccountBook } from "@preact-icons/ai";
* // or
* import AiFillAccountBook from "@preact-icons/ai/AiFillAccountBook.ts";
*
* export default function TesSvg() {
* return (<AiFillAccountBook />)
* }
* ```
*
* Check the full documetation in: [here](https://react-icons.github.io/react-icons/)
*
* the first sample:
*
* ```tsx
* import { FaBeer } from 'react-icons/fa';
* class Question extends React.Component {
* render() {
* return <h3> Lets go for a <FaBeer />? </h3>
* }
* }
* ```
*
* can be convert as:
*
* ```tsx
* import { FaBeer } from '@preact-icons/fa';
* import { Component } from 'preact'
*
* class Question extends Component {
* render() {
* return <h3> Lets go for a <FaBeer />? </h3>
* }
* }
* ```
* @module
*/
export { type IconTree, type IconBaseProps, GenIcon, IconBase } from "./lib/iconBase.tsx";
export { type IconContext, defaultIconContext, defaultContext } from "./lib/iconContext.ts";