mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 23:59:08 +03:00
* docs * naming * docs * mini fix * update policies component * use destructured prop * rls policies dialogs * custom domain dialogs * restart server dialog * remove ConfirmDialog (aka ConfirmModal) * docs updates * remove unrelated work * remove unrelated work * remove unrelated work * confirmation-modal demo * use indicative components * links * tiny docs updates * examples * sheets and alert dialog examples * docs and examples * docs * docs * text confirm modal * docs * docs * revert cursor rules * fixes * fix links * Update apps/design-system/registry/examples.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * rabbit * rabbit * use variants --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
49 lines
1.4 KiB
TypeScript
49 lines
1.4 KiB
TypeScript
import {
|
|
Button,
|
|
Dialog,
|
|
DialogContent,
|
|
DialogDescription,
|
|
DialogFooter,
|
|
DialogHeader,
|
|
DialogSection,
|
|
DialogSectionSeparator,
|
|
DialogTitle,
|
|
DialogTrigger,
|
|
Input_Shadcn_,
|
|
Label_Shadcn_,
|
|
} from 'ui'
|
|
|
|
export default function DialogDemo() {
|
|
return (
|
|
<Dialog>
|
|
<DialogTrigger asChild>
|
|
<Button type="default">Edit profile</Button>
|
|
</DialogTrigger>
|
|
<DialogContent className="sm:max-w-[425px]" centered={false}>
|
|
<DialogHeader>
|
|
<DialogTitle>This dialog is not centered.</DialogTitle>
|
|
<DialogDescription>This dialog is not centered.</DialogDescription>
|
|
</DialogHeader>
|
|
<DialogSectionSeparator />
|
|
<DialogSection className="space-y-4">
|
|
<div>
|
|
<Label_Shadcn_ htmlFor="name" className="text-right">
|
|
Name
|
|
</Label_Shadcn_>
|
|
<Input_Shadcn_ id="name" defaultValue="Pedro Duarte" className="col-span-3" />
|
|
</div>
|
|
<div>
|
|
<Label_Shadcn_ htmlFor="username" className="text-right">
|
|
Username
|
|
</Label_Shadcn_>
|
|
<Input_Shadcn_ id="username" defaultValue="@peduarte" className="col-span-3" />
|
|
</div>
|
|
</DialogSection>
|
|
<DialogFooter>
|
|
<Button htmlType="submit">Save changes</Button>
|
|
</DialogFooter>
|
|
</DialogContent>
|
|
</Dialog>
|
|
)
|
|
}
|