@fidely-ui/react
Version:
Fidely UI is a modern, beautifully crafted React design system powered by Ark UI and Panda CSS, delivering accessible and themeable components for building exceptional web apps
10 lines (9 loc) • 452 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import * as React from 'react';
import { ark } from '@ark-ui/react/factory';
export function createIcon(path) {
return React.forwardRef(function Icon(props, ref) {
const { size = 20, ...rest } = props;
return (_jsx(ark.svg, { ref: ref, width: size, height: size, viewBox: "0 0 24 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...rest, children: path }));
});
}