Extends the Dialog component to display content that complements the main content of the screen.
Epicenter
Local-first, open source apps
Installation
Install bits-ui:
Copy and paste the following code into your project.
Usage
<script lang="ts">
import * as Sheet from "$lib/components/ui/sheet/index.js";
</script> <Sheet.Root>
<Sheet.Trigger>Open</Sheet.Trigger>
<Sheet.Content>
<Sheet.Header>
<Sheet.Title>Are you sure absolutely sure?</Sheet.Title>
<Sheet.Description>
This action cannot be undone. This will permanently delete your account
and remove your data from our servers.
</Sheet.Description>
</Sheet.Header>
</Sheet.Content>
</Sheet.Root> Side
Use the side prop on Sheet.Content to set the edge of the screen where the sheet appears. Values are top, right, bottom, or left.
No Close Button
Use showCloseButton={false} on Sheet.Content to hide the close button.