Icon
install
npm install @rainbow_deer/icon
or
yarn add @rainbow_deer/icon
Usage
import React, { useState } from 'react'
import Icon from '@rainbow_deer/icon'
export default () => {
return (
<>
<Icon type='close' />
<Icon type='success' />
<Icon type='error' />
<Icon type='warning' />
</>
)
}
props
export interface IconProps {
icon: string
className?: string
style?: React.CSSProperties
}