Paragraph component.
<P>This is a paragraph.</P>
Here's the <P />
component in action.
This is a paragraph.
import { forwardRef, type HTMLAttributes } from 'react'import { cn } from '#app/utils/tailwind-merge.ts'
/** * A p (paragraph) component. */const P = forwardRef<HTMLParagraphElement, HTMLAttributes<HTMLParagraphElement>>(({ className, ...props }, ref) => <p ref={ref} className={cn('p', className)} {...props} />)P.displayName = 'P'
export { P }
.p { @apply text-fluid-md my-fluid-11 max-w-prose font-sans font-normal; &:last-child { @apply mb-0; }}