New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vaul-base

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vaul-base

An unstyled drawer component for React.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
12K
-37.99%
Maintainers
1
Weekly downloads
 
Created
Source

Vaul Base

npm version npm downloads license

Vaul Base is an unstyled drawer component for React, built with Base UI. It serves as a replacement for Dialog on mobile and tablet devices. The component utilizes Base UI's Dialog internally.

This is a port of Vaul to Base UI. It's originally created by Emil Kowalski.

Usage

To start using Vaul Base, install it in your project:

npm install vaul-base

Use the Drawer in your application:

import { Drawer } from "vaul-base"

function MyDrawerComponent() {
  return (
    <Drawer.Root>
      <Drawer.Trigger>Open Drawer</Drawer.Trigger>
      <Drawer.Portal>
        <Drawer.Overlay />
        <Drawer.Content>Drawer content</Drawer.Content>
      </Drawer.Portal>
    </Drawer.Root>
  )
}

Examples

Here are additional examples demonstrating the component in use.

Documentation

You can use original Vaul documentation for more information.

Keywords

react

FAQs

Package last updated on 20 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts