@postenbring/hedwig-react
Version:
React components for [Hedwig Design System](https://github.com/bring/hedwig-design-system).
36 lines (34 loc) • 956 B
JavaScript
import {
__objRest,
__spreadProps,
__spreadValues
} from "./chunk-YOSPWY5K.mjs";
// src/blockquote/blockquote.tsx
import { clsx } from "@postenbring/hedwig-css/typed-classname";
import { Slot } from "@radix-ui/react-slot";
import { forwardRef } from "react";
import { jsx } from "react/jsx-runtime";
var Blockquote = forwardRef(
(_a, ref) => {
var _b = _a, { children, asChild, className, variant } = _b, rest = __objRest(_b, ["children", "asChild", "className", "variant"]);
const Component = asChild ? Slot : "blockquote";
return /* @__PURE__ */ jsx(
Component,
__spreadProps(__spreadValues({
ref,
className: clsx(
"hds-blockquote",
variant === "norwegian" && `hds-blockquote--norwegian`,
className
)
}, rest), {
children
})
);
}
);
Blockquote.displayName = "Blockquote";
export {
Blockquote
};
//# sourceMappingURL=chunk-JYN2QSN2.mjs.map