at main 16 lines 498 B view raw
1import { cn } from '@/lib/utils'; 2import React from 'react'; 3import { paragraphStyles } from './Paragraph.styles'; 4import { ParagraphProps } from './Paragraph.types'; 5 6export const Paragraph = React.forwardRef<HTMLParagraphElement, ParagraphProps>( 7 ({ children, size = 'md', className = '' }, ref) => { 8 return ( 9 <p ref={ref} className={cn(paragraphStyles.base, paragraphStyles.sizes[size], className)}> 10 {children} 11 </p> 12 ); 13 }, 14); 15 16Paragraph.displayName = 'Paragraph';