import { PlateElement } from '@udecode/plate-common' import type { RecipeVariants } from '@vanilla-extract/recipes' import { forwardRef } from 'react' import { heading } from './element.css' type HeadingElementProps = React.ComponentPropsWithoutRef & RecipeVariants export const HeadingElement = forwardRef(({ variant, ...props }: HeadingElementProps, ref: React.ElementRef) => { const Heading = variant ?? 'h1' return ( {props.children} ) })