skyroc-ui
Version:
A modern React UI component library built on Radix UI and Tailwind CSS
21 lines (19 loc) • 669 B
JavaScript
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/AlertDescription.tsx
const AlertDescription = forwardRef((props, ref) => {
const { className, size,...rest } = props;
const { description } = alertVariants({ size });
const mergedCls = cn(description(), className);
return /* @__PURE__ */ jsx("div", {
className: mergedCls,
...rest,
ref
});
});
AlertDescription.displayName = "AlertDescription";
var AlertDescription_default = AlertDescription;
//#endregion
export { AlertDescription_default as default };