aboutsummaryrefslogtreecommitdiff
path: root/packages/memory-graph/src/ui/heading.tsx
blob: 65e8abc85dff2de25c08047ab051bdfc9254dfa0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Root } from "@radix-ui/react-slot";
import { headingH3Bold } from "./heading.css";

export function HeadingH3Bold({
	className,
	asChild,
	...props
}: React.ComponentProps<"h3"> & { asChild?: boolean }) {
	const Comp = asChild ? Root : "h3";

	const combinedClassName = className
		? `${headingH3Bold} ${className}`
		: headingH3Bold;

	return (
		<Comp className={combinedClassName} {...props} />
	);
}