-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<script lang="ts"> | ||
import * as Sheet from "@/components/ui/sheet"; | ||
import * as Button from "@/components/ui/button"; | ||
import * as Label from "@/components/ui/label"; | ||
import * as Input from "@/components/ui/input"; | ||
</script> | ||
|
||
<Sheet.Root> | ||
<Sheet.Trigger asChild let:builder> | ||
<Button.Root builders={[builder]} variant="outline">Open</Button.Root> | ||
</Sheet.Trigger> | ||
<Sheet.Content side="right"> | ||
<Sheet.Header> | ||
<Sheet.Title>Edit profile</Sheet.Title> | ||
<Sheet.Description> | ||
Make changes to your profile here. Click save when you're done. | ||
</Sheet.Description> | ||
</Sheet.Header> | ||
<div class="grid gap-4 py-4"> | ||
<div class="grid grid-cols-4 items-center gap-4"> | ||
<Label.Root for="name" class="text-right">Name</Label.Root> | ||
<Input.Root id="name" value="Pedro Duarte" class="col-span-3" /> | ||
</div> | ||
<div class="grid grid-cols-4 items-center gap-4"> | ||
<Label.Root for="username" class="text-right">Username</Label.Root> | ||
<Input.Root id="username" value="@peduarte" class="col-span-3" /> | ||
</div> | ||
</div> | ||
<Sheet.Footer> | ||
<Sheet.Close asChild let:builder> | ||
<Button.Root builders={[builder]} type="submit">Save changes</Button.Root> | ||
</Sheet.Close> | ||
</Sheet.Footer> | ||
</Sheet.Content> | ||
</Sheet.Root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters