taxonomy/components/docs/page-header.tsx
shadcn 9ad43152cb
feat: contentlayer (#22)
* feat: implement blog and doc sites

* fix: opacity for disabled menu items
2022-11-17 21:43:12 +04:00

25 lines
605 B
TypeScript

import { cn } from "@/lib/utils"
interface DocsPageHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
heading: string
text?: string
}
export function DocsPageHeader({
heading,
text,
className,
...props
}: DocsPageHeaderProps) {
return (
<>
<div className={cn("space-y-4", className)} {...props}>
<h1 className="inline-block text-4xl font-black tracking-tight text-slate-900 lg:text-5xl">
{heading}
</h1>
{text && <p className="text-xl text-slate-600">{text}</p>}
</div>
<hr className="my-4 border-slate-200" />
</>
)
}