mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 18:30:32 -06:00
15 lines
345 B
TypeScript
15 lines
345 B
TypeScript
import clsx from "clsx";
|
|
|
|
export function Prose<T extends React.ElementType = "div">({
|
|
as,
|
|
className,
|
|
...props
|
|
}: Omit<React.ComponentPropsWithoutRef<T>, "as" | "className"> & {
|
|
as?: T;
|
|
className?: string;
|
|
}) {
|
|
let Component = as ?? "div";
|
|
|
|
return <Component className={clsx(className, "prose dark:prose-invert")} {...props} />;
|
|
}
|