mirror of
https://github.com/supabase/supabase.git
synced 2026-10-12 12:55:06 +03:00
* change database to pagelayout * page components * design system documentation * reduce preview width * revert studio * functions apply page * layout * interfaces * remove demos * pckage * format * format * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * build registry * pckg * build script to allow index files * switch exports * fixes * gen exports * remove invalid prop * fix typecheck * fix prettier * Revert "remove invalid prop" This reverts commit118ecd40c5. * Revert "fix typecheck" This reverts commit0e1ec8fb61. * Revert "fix prettier" This reverts commit2f25ed695c. * pretter * fresh pnpm i * Update pnpm lock * fix import * revert * Update packages/ui-patterns/src/PageContainer/index.tsx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update packages/ui-patterns/src/PageHeader/index.tsx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update packages/ui-patterns/src/PageSection/index.tsx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * ts fix * Update apps/design-system/content/docs/ui-patterns/page.mdx Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com> * change to layouts and examples --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com> Co-authored-by: Joshen Lim <joshenlimek@gmail.com> Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
import {
|
|
PageSection,
|
|
PageSectionMeta,
|
|
PageSectionSummary,
|
|
PageSectionTitle,
|
|
PageSectionDescription,
|
|
PageSectionContent,
|
|
} from 'ui-patterns/PageSection'
|
|
import { Card, CardContent } from 'ui'
|
|
|
|
export default function PageSectionHorizontal() {
|
|
return (
|
|
<div className="w-full">
|
|
<PageSection orientation="horizontal">
|
|
<PageSectionMeta>
|
|
<PageSectionSummary>
|
|
<PageSectionTitle>Section Title</PageSectionTitle>
|
|
<PageSectionDescription>
|
|
In horizontal orientation, the summary (title and description) appears on the left,
|
|
with content arranged on the right on larger screens. This is useful for detailed
|
|
sections where you want to maintain context while viewing content.
|
|
</PageSectionDescription>
|
|
</PageSectionSummary>
|
|
</PageSectionMeta>
|
|
<PageSectionContent>
|
|
<Card>
|
|
<CardContent className="p-6">
|
|
<p className="text-sm text-foreground-light">
|
|
The content area appears alongside the summary in a horizontal layout. On smaller
|
|
screens, it will stack vertically.
|
|
</p>
|
|
</CardContent>
|
|
</Card>
|
|
</PageSectionContent>
|
|
</PageSection>
|
|
</div>
|
|
)
|
|
}
|