Files
supabase/apps/docs/features/ui/guide/GuideHeader.tsx
T
Francesco Sansalvadore acbb19a69a feat: www & docs fonts (#47227)
Update marketing website and docs with new sans-serif fonts:
- `Inter` - sans-serif for all body text
- `Manrope` - sans-serif for headings

PR breakdown of #43455 
Related: #47226 #47228 #47236
2026-07-01 12:59:00 +02:00

28 lines
694 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="mb-0 [&>p]:m-0">
<ReactMarkdown>{meta?.title || 'Supabase Docs'}</ReactMarkdown>
</h1>
{meta?.subtitle && (
<div className="mt-6 not-prose [&_p]:text-xl [&_p]:leading-7 text-foreground-light [&>p]:m-0">
<ReactMarkdown>{meta.subtitle}</ReactMarkdown>
</div>
)}
<hr className="not-prose border-t-0 border-b my-8" />
</div>
)
}