mirror of
https://github.com/supabase/supabase.git
synced 2026-05-08 01:40:13 -04:00
56de26fe22
This PR migrates the whole monorepo to use Tailwind v4: - Removed `@tailwindcss/container-queries` plugin since it's included by default in v4, - Bump all instances of Tailwind to v4. Made minimal changes to the shared config to remove non-supported features (`alpha` mentions), - Migrate all apps to be compatible with v4 configs, - Fix the `typography.css` import in 3 apps, - Add missing rules which were included by default in v3, - Run `pnpm dlx @tailwindcss/upgrade` on all apps, which renames a lot of classes - Rename all misnamed classes according to https://tailwindcss.com/docs/upgrade-guide#renamed-utilities in all apps. --------- Co-authored-by: Jordi Enric <jordi.err@gmail.com>
36 lines
866 B
TypeScript
36 lines
866 B
TypeScript
import { ReactNode } from 'react'
|
|
import { cn } from 'ui'
|
|
|
|
import { DocsButton } from '../DocsButton'
|
|
|
|
export const FormHeader = ({
|
|
title,
|
|
description,
|
|
docsUrl,
|
|
actions,
|
|
className,
|
|
}: {
|
|
title: string
|
|
description?: string
|
|
docsUrl?: string
|
|
actions?: ReactNode
|
|
className?: string
|
|
}) => {
|
|
return (
|
|
<div
|
|
className={cn(
|
|
`w-full mb-6 flex flex-col sm:flex-row md:items-center justify-between gap-4 md:h-(--header-height) ${className}`
|
|
)}
|
|
>
|
|
<div className="space-y-1">
|
|
<h3 className="text-foreground text-xl prose">{title}</h3>
|
|
{description && <p className="prose text-sm max-w-2xl">{description}</p>}
|
|
</div>
|
|
<div className="flex flex-col sm:flex-row md:items-center gap-x-2">
|
|
{docsUrl !== undefined && <DocsButton href={docsUrl} />}
|
|
{actions}
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|