UNPKG

@stratakit/react

Version:

A React component library for StrataKit

28 lines (27 loc) 678 B
import { jsx } from "react/jsx-runtime"; import * as React from "react"; import { Icon as SkIcon } from "@stratakit/foundations"; import { useCompatProps } from "./~utils.js"; const Icon = React.forwardRef((props, forwardedRef) => { const { // biome-ignore-start lint/correctness/noUnusedVariables: NOT IMPLEMENTED fill, padded, // biome-ignore-end lint/correctness/noUnusedVariables: NOT IMPLEMENTED size, children, ...rest } = useCompatProps(props); return /* @__PURE__ */ jsx( SkIcon, { render: children, size: size === "large" ? "large" : void 0, ...rest, ref: forwardedRef } ); }); export { Icon };