blob: ed9b80eff9d41d77cdc8465b79cf9cb685960b8e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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} />
}
|