* implement toc * added to projects * fixes and adapt for references * added product frontmatter * remove action menu from 404 pages
22 lines
517 B
TypeScript
22 lines
517 B
TypeScript
import clsx from "clsx"
|
|
import React from "react"
|
|
|
|
export type H1Props = React.HTMLAttributes<HTMLHeadingElement> & {
|
|
id?: string
|
|
}
|
|
|
|
export const H1 = ({ className, ...props }: H1Props) => {
|
|
return (
|
|
<div className="flex items-start justify-between gap-2 h1-wrapper">
|
|
<h1
|
|
className={clsx(
|
|
"h1-docs [&_code]:!h1-docs [&_code]:!font-mono mb-docs_1 text-medusa-fg-base",
|
|
props.id && "scroll-m-docs_7",
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|