Files
supabase/apps/design-system/registry/default/example/page-section-title-only.tsx
Danny WhiteandJoshen Lim 60dfcc00ea fix(studio): PageSectionSummary alignment (#42019)
* system

* nit

* docs and fixes

* more resilient component

* remove redundant text

* format

* nit

* PRettier

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-01-21 10:18:15 +08:00

33 lines
928 B
TypeScript

import { Card, CardContent } from 'ui'
import {
PageSection,
PageSectionContent,
PageSectionMeta,
PageSectionSummary,
PageSectionTitle,
} from 'ui-patterns/PageSection'
export default function PageSectionTitleOnly() {
return (
<div className="w-full">
<PageSection>
<PageSectionMeta>
<PageSectionSummary>
<PageSectionTitle>Section Title</PageSectionTitle>
</PageSectionSummary>
</PageSectionMeta>
<PageSectionContent>
<Card>
<CardContent className="p-6">
<p className="text-sm text-foreground-light">
PageSectionSummary should still be wrapped in PageSectionMeta, as the latter is a
flex container that will allow the former to span its full width.
</p>
</CardContent>
</Card>
</PageSectionContent>
</PageSection>
</div>
)
}