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