Files
supabase/apps/docs/features/ui/guide/GuideArticle.tsx
Tomas Pozo ec1c534013 New GuideTemplate with composable components (#36893)
* Add db wrappers open in dashboard cta

* Restore getLatestRelease return to null

* Add guide template components with flexible content positioning

* Add Guide components with composition pattern

* Remove default branch on tag value

* Add GuideTemplate component and do some clean up

* Restore original GuideTemplate

* Clean up code and unused props

* Remove displayName

* Remove unwanted export

* Refactor EditLink to its own helper file

* Apply several fixes

* Fix underline on cta button

* Remove default main tag

* More descriptive button cta label

* fix(docs): add iceberg_wrapper dashboard integration

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2025-07-09 16:42:54 +00:00

25 lines
549 B
TypeScript

import { type ReactNode } from 'react'
import { cn } from 'ui'
import Breadcrumbs from '~/components/Breadcrumbs'
interface GuideArticleProps {
children: ReactNode
className?: string
}
export function GuideArticle({ children, className }: GuideArticleProps) {
return (
<>
<Breadcrumbs className="mb-2" />
<article
// Used to get headings for the table of contents
id="sb-docs-guide-main-article"
className={cn('prose max-w-none', className)}
>
{children}
</article>
</>
)
}