vaul-vue
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

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

/vaul-vue/

    Package Sidebar

    Install

    npm i vaul-vue

    Weekly Downloads

    52,913

    Version

    0.4.1

    License

    none

    Unpacked Size

    75.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • elliotalexander
    • connerblanton_