feat(SW-762): add h5 level

This commit is contained in:
Fredrik Thorsson
2024-11-04 10:17:48 +01:00
parent 7f24dfc703
commit f84866da45
3 changed files with 3 additions and 2 deletions
@@ -2,7 +2,7 @@ import { headingVariants } from "./variants"
import type { VariantProps } from "class-variance-authority"
type HeadingLevel = "h1" | "h2" | "h3" | "h4"
type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5"
export interface HeadingProps
extends Omit<React.HTMLAttributes<HTMLHeadingElement>, "color">,
@@ -26,6 +26,7 @@ const config = {
h2: styles.h2,
h3: styles.h3,
h4: styles.h4,
h5: styles.h4,
},
},
defaultVariants: {