Vaul logo

Vaul

component

Vaul is an unstyled drawer component specifically designed for React applications. It serves as a dialog replacement, optimized for use on tablet and mobile devices. The component is built with flexibility in mind, allowing developers to customize how the drawer behaves and appears in their applications.One of its key features is the capability to scale the background when the drawer is opened, creating a more immersive experience for users. The drawer can be controlled programmatically, enabling developers to manage its open state through React's state management. Vaul provides a straightforward API for integration, with clearly defined components such as Drawer.Root, Drawer.Trigger, Drawer.Content, and Drawer.Overlay, allowing for an organized structure when incorporating it into applications. The library supports various functionalities such as snapping points for better user interaction, customizability of the container for the drawer, and options for non-dismissible behavior.This component is ideal for developers looking to implement a responsive, mobile-friendly drawer feature without the constraints of styled components that could clash with their application's design system. For comprehensive examples on its usage, users can explore a set of interactive demos available on CodeSandbox, which showcase the component's various features like scroll controls and custom snap points.

Features

  • Unstyled drawer component
  • Mobile and tablet optimization
  • Background scaling
  • Customizable snap points
  • Programmatic control over open state
  • Supports nested drawers
  • Flexible content positioning
  • Custom portal for rendering

Stats

GitHub Stars6.5K

NPM Downloads605.0K/week

Details

Latest Version1.1.1

Created at7/16/2023

Updated at12/6/2024

LicenseMIT License

Related Items

About KickstartUI

KickstartUI is your ultimate destination for discovering the best UI frameworks, libraries, and build tools. We meticulously curate top-notch resources to empower developers in bringing their UI ideas to life. Whether you're building a responsive web app, crafting a mobile interface, or designing an interactive prototype, our platform offers the essential tools to accelerate your projects and enhance user experiences. Explore our extensive collection to stay ahead of the latest trends, unlock new possibilities, and elevate your UI designs. Ready to kickstart your next project? Dive into our featured resources or search for specific tools tailored to your needs.