A p element with control for typographic attributes.
The tracking's default value depends on the size prop and is controlled through CSS variables: check out the styling section.
<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 }