Files
supabase/apps/docs/features/ui/guide/GuideHeader.tsx
Alan Daniel 67668d21e4 docs: scope Manrope to main page titles only
Headings inside MDX content now use Inter to match body copy.
Manrope stays on the per-page main title and the homepage hero/section titles.
2026-05-27 12:03:45 -04:00

28 lines
663 B
TypeScript

'use client'
import ReactMarkdown from 'react-markdown'
import { useGuide } from './Guide'
interface GuideHeaderProps {
className?: string
}
export function GuideHeader({ className }: GuideHeaderProps) {
const { meta } = useGuide()
return (
<div className={className}>
<h1 className="font-heading mb-0 [&>p]:m-0">
<ReactMarkdown>{meta?.title || 'Supabase Docs'}</ReactMarkdown>
</h1>
{meta?.subtitle && (
<h2 className="mt-3 text-xl text-foreground-light">
<ReactMarkdown>{meta.subtitle}</ReactMarkdown>
</h2>
)}
<hr className="not-prose border-t-0 border-b my-8" />
</div>
)
}