Skip to content

unovue/vaul-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1b1f6df · Mar 15, 2025
Mar 15, 2025
Jan 31, 2025
May 6, 2024
Mar 15, 2025
Mar 8, 2025
Mar 1, 2024
Jan 13, 2024
Jan 30, 2025
Feb 20, 2025
Mar 1, 2024
Mar 8, 2025
Mar 8, 2025
Mar 7, 2025
Mar 1, 2024

Repository files navigation

Vaul Vue

Vaul Vue is an unstyled drawer component for Vue that can be used as a Dialog replacement on tablet and mobile devices. It uses Reka UI's Dialog primitive under the hood and is a feature complete port of Emil Kowalski's Vaul library (built for React).

Installation

pnpm add vaul-vue
npm install vaul-vue
yarn add vaul-vue

Usage

<script setup lang="ts">
import { DrawerContent, DrawerOverlay, DrawerPortal, DrawerRoot, DrawerTrigger } from 'vaul-vue'
</script>

<template>
  <DrawerRoot>
    <DrawerTrigger> Open </DrawerTrigger>
    <DrawerPortal>
      <DrawerOverlay />
      <DrawerContent>
        <p>Content</p>
      </DrawerContent>
    </DrawerPortal>
  </DrawerRoot>
</template>

Credits

All credits go to these open-source works and resources