Overview
Vaul-Svelte is an unstyled drawer component for Svelte that can be used as a Dialog replacement on tablet and mobile devices. It is a port of Vaul for React, created by Emil Kowalski. Vaul-Svelte utilizes Bits’ Dialog primitive and is inspired by a tweet.
Features
- Unstyled drawer component for Svelte
- Can be used as a Dialog replacement on tablet and mobile devices
- Uses Bits’ Dialog primitive
- Port of Vaul for React
Installation
To start using Vaul-Svelte in your project, follow these steps:
- Install Vaul-Svelte:
npm install vaul-svelte
- Import the drawer component into your app:
import { Drawer } from 'vaul-svelte'
- Use the drawer component in your app as needed
Summary
Vaul-Svelte is an unstyled drawer component for Svelte that serves as a replacement for Dialog on tablet and mobile devices. It is a port of Vaul for React and utilizes Bits’ Dialog primitive. With its features and easy installation, Vaul-Svelte provides a convenient solution for implementing drawers in Svelte projects.