Vaul screenshot

Vaul

Author Avatar Theme by Emilkowalski
Updated: 17 Mar 2025
7370 Stars

A drawer component for React.

Overview:

Vaul is an unstyled drawer component designed for React, serving as a replacement for Dialog on tablet and mobile devices. This library provides a convenient way to incorporate a drawer functionality into your React application. Vaul offers various features and customization options that enhance the user experience.

Features:

  • Dialog Replacement: Can be used as a substitute for Dialog on mobile and tablet devices.
  • Customizable Appearance: Offers multiple props for customizing the drawer’s behavior.
  • Controlled Opening: Can be controlled through props like value and onOpenChange.

Installation:

To start using Vaul in your project, follow these steps:

  1. Install the library in your project:
npm install vaul
  1. Utilize the drawer component in your application.

Summary:

Vaul is a versatile drawer component for React applications, providing a seamless way to incorporate a Dialog replacement on mobile and tablet devices. With its customizable features and ease of implementation, Vaul enhances user interactions and simplifies the development of responsive interfaces.