Files
medusa-store/www/packages/docs-ui/src/components/Heading/H1/index.tsx
T
Shahed NasserandGitHub 009d00f27d docs: redesign table of content (#12647)
* implement toc

* added to projects

* fixes and adapt for references

* added product frontmatter

* remove action menu from 404 pages
2025-05-30 16:55:36 +03:00

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>
)
}