UNPKG

ar-design

Version:

AR Design is a (react | nextjs) ui library.

8 lines (7 loc) 431 B
import React from "react"; import Svg from "./Svg"; import Icon from "./Compiler"; export const ARIcon = ({ viewBox, size, variant = "linear", icon, fill = "var(--dark)", stroke = "var(--dark)", strokeWidth = 1, style, }) => { const { Compiler } = new Icon(fill, stroke, strokeWidth); return (React.createElement(Svg, { viewBox: viewBox, fill: fill, width: size, height: size, style: style }, Compiler(variant, icon))); };