Drawer
A modal sheet anchored to a screen edge.Examples
Installation
Install the package, then import only the components a route uses. Exports are tree-shakable.
Install
pnpm add fractalsvelteImport
<script lang="ts">
import { Drawer } from 'fractalsvelte';
</script>Usage
Usage
<script lang="ts">
import { Drawer } from 'fractalsvelte';
</script>
<Drawer />Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | - | The heading shown in the surface. |
trigger | string | 'Open drawer' | Label for the control that opens the surface. |
side | 'top' | 'right' | 'bottom' | 'left' | 'right' | Which edge the surface is anchored to. |
open | boolean | false | Whether the drawer is open. Supports bind:. |
