Sheet
Overlays bits-uiA glass panel that slides in from any edge.
Example
<script lang="ts">
import * as Sheet from '$lib/components/ui/sheet';
import { Button, buttonVariants } from '$lib/components/ui/button';
import { Label } from '$lib/components/ui/label';
import { Input } from '$lib/components/ui/input';
</script>
<Sheet.Root>
<Sheet.Trigger class={buttonVariants({ variant: 'secondary' })}>Open settings</Sheet.Trigger>
<Sheet.Content side="right">
<Sheet.Header>
<Sheet.Title>Water settings</Sheet.Title>
<Sheet.Description>Adjust your flow, then save to apply.</Sheet.Description>
</Sheet.Header>
<div class="flex flex-col gap-4 py-2">
<div class="flex flex-col gap-2">
<Label for="source">Source</Label>
<Input id="source" value="Mountain spring" />
</div>
<div class="flex flex-col gap-2">
<Label for="flow">Flow rate</Label>
<Input id="flow" type="number" value="42" />
</div>
</div>
<Sheet.Footer>
<Sheet.Close class={buttonVariants({ variant: 'ghost' })}>Cancel</Sheet.Close>
<Button>Save changes</Button>
</Sheet.Footer>
</Sheet.Content>
</Sheet.Root>Installation
npx shadcn-svelte@latest add https://mizu-ui.com/r/sheet.json