Files
blitzkit/packages/website/src/components/Heading/index.tsx
T
2026-08-18 12:49:14 -05:00

24 lines
502 B
TypeScript

import { classNames } from "../../ui/classNames";
import { Text, type TextProps } from "../Text";
import styles from "./index.module.css";
export interface HeadingProps extends Omit<TextProps, "size"> {
size?: `${1 | 2 | 3 | 4 | 5 | 6}`;
}
export function Heading({
className,
weight,
size = "1",
...props
}: HeadingProps) {
return (
<Text
{...props}
weight={weight ?? "medium"}
className={classNames(styles.heading, className)}
data-size={size}
/>
);
}