UNPKG

skyroc-ui

Version:

A modern React UI component library built on Radix UI and Tailwind CSS

21 lines (19 loc) 633 B
import { cn } from "../../lib/utils.js"; import { alertVariants } from "./alert-variants.js"; import { forwardRef } from "react"; import { jsx } from "react/jsx-runtime"; //#region src/components/alert/AlertWrapper.tsx const AlertWrapper = forwardRef((props, ref) => { const { className, size,...rest } = props; const { wrapper } = alertVariants({ size }); const mergedCls = cn(wrapper(), className); return /* @__PURE__ */ jsx("div", { className: mergedCls, ...rest, ref }); }); AlertWrapper.displayName = "AlertWrapper"; var AlertWrapper_default = AlertWrapper; //#endregion export { AlertWrapper_default as default };