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 fractalsvelte
Import
<script lang="ts">
	import { Drawer } from 'fractalsvelte';
</script>

Usage

Usage
<script lang="ts">
	import { Drawer } from 'fractalsvelte';
</script>

<Drawer />

Props

PropTypeDefaultDescription
titlestring-The heading shown in the surface.
triggerstring'Open drawer'Label for the control that opens the surface.
side'top' | 'right' | 'bottom' | 'left''right'Which edge the surface is anchored to.
openbooleanfalseWhether the drawer is open. Supports bind:.