Skip to content

xsio/prism-icons

Repository files navigation

Prism Icons

安装与更新

# install
yarn add @prism/ui-icons

# upgrade
yarn up @prism/ui-icons

Component Interface

interface Props extends SVGAttributes<SVGElement> {
  color?: string;
  size?: string | number;
  fills?: string[];
}

export type Icon = FC<Props>;

使用

import { ArrowRight, ArrowLeft } from "@prism/ui-icons";

function App() {
  return (
    <div className="App">
      <ArrowLeft fills={["red", "orange"]} />
      <ArrowRight color="cyan" />
    </div>
  );
}