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