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

22 lines
476 B
TypeScript

'use client';
import React from 'react';
import { cn } from '@udecode/cn';
import { withRef } from '@udecode/plate-common/react';
import { PlateElement } from './plate-element';
export const ParagraphElement = withRef<typeof PlateElement>(
({ children, className, ...props }, ref) => {
return (
<PlateElement
ref={ref}
className={cn('m-0 px-0 py-1', className)}
{...props}
>
{children}
</PlateElement>
);
}
);