14 lines
376 B
TypeScript
14 lines
376 B
TypeScript
import { headingVariants } from "./variants"
|
|
|
|
import type { VariantProps } from "class-variance-authority"
|
|
|
|
type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6"
|
|
|
|
export interface HeadingProps
|
|
extends Omit<React.HTMLAttributes<HTMLHeadingElement>, "color">,
|
|
VariantProps<typeof headingVariants> {
|
|
as?: HeadingLevel
|
|
hideEmpty?: boolean
|
|
level?: HeadingLevel
|
|
}
|