0.7.0 • Published 5 years ago

@clinia/icons-react v0.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

NPM version NPM downloads

Install

yarn add @clinia/icons
yarn add @clinia/icons-react

Basic Usage

First, you should add the icons that you need into the library.

import {
  CliniaDesignOutline,
  DashboardOutline,
  TwitterOutline
} from "@clinia/icons";
import CliniadIcon from "@clinia/icons-react";
CliniadIcon.add(CliniaDesignOutline, DashboardOutline);

After that, you can use cliniad icons in your React components as simply as this:

<CliniadIcon type="ant-design-o" />
<CliniadIcon type="dashboard-o" />
<CliniadIcon type={TwitterOutline} />

Component Interface

interface CliniadIconProps {
  type: string | IconDefinition;
  className?: string;
  onClick?: React.MouseEventHandler<SVGSVGElement>;
  style?: React.CSSProperties;
}