H3 heading component.
<H3>This is an h3 heading</H3>
Here's the <H3 />
component in action.
import { forwardRef, type HTMLAttributes } from 'react'import { cn } from '#app/utils/tailwind-merge.ts'
/** * A h3 component. */const H3 = forwardRef<HTMLHeadingElement, HTMLAttributes<HTMLHeadingElement>>(({ className, ...props }, ref) => <h3 ref={ref} className={cn('h3', className)} {...props} />)H3.displayName = 'H3'
export { H3 }
.h3 { @apply text-muted-900 mt-fluid-14 mb-fluid-9 text-fluid-2xl max-w-prose font-sans font-bold capitalize; /* If h3 has h4 after it */ &:has(+ .h4) { @apply mb-fluid-8; } /* Typographical elements after h3 */ & + .h4, & + .p { @apply mt-0; }}