docs(website): add prompt caching guidance
This commit is contained in:
@@ -2,7 +2,7 @@ import { ComponentPropsWithoutRef, useEffect, useRef } from 'react'
|
||||
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
type Level = 2 | 3
|
||||
type Level = 2 | 3 | 4
|
||||
|
||||
interface HeadingProps extends Omit<ComponentPropsWithoutRef<'h2'>, 'children'> {
|
||||
id: string
|
||||
@@ -11,8 +11,9 @@ interface HeadingProps extends Omit<ComponentPropsWithoutRef<'h2'>, 'children'>
|
||||
}
|
||||
|
||||
const levelStyles = {
|
||||
2: { tag: 'h2', className: 'text-2xl font-semibold mb-4' },
|
||||
3: { tag: 'h3', className: 'text-xl font-semibold mb-3' },
|
||||
2: { tag: 'h2', className: 'text-3xl font-semibold mb-4' },
|
||||
3: { tag: 'h3', className: 'text-[1.375rem] font-semibold mb-3' },
|
||||
4: { tag: 'h4', className: 'text-[1.0625rem] font-medium mb-2' },
|
||||
} as const
|
||||
|
||||
export function Heading({ id, level = 2, className, children, ...props }: HeadingProps) {
|
||||
|
||||
Reference in New Issue
Block a user