supermemory/apps/web/app/components/plate-ui/blockquote-element.tsx
2025-01-20 17:50:45 -07:00

22 lines
469 B
TypeScript

'use client';
import React from 'react';
import { cn, withRef } from '@udecode/cn';
import { PlateElement } from './plate-element';
export const BlockquoteElement = withRef<typeof PlateElement>(
({ children, className, ...props }, ref) => {
return (
<PlateElement
ref={ref}
as="blockquote"
className={cn('my-1 border-l-2 pl-6 italic', className)}
{...props}
>
{children}
</PlateElement>
);
}
);