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