Skip to content

seacoastpartners/drawer

 
 

Repository files navigation

Drawer

Unstyled drawer component for Vue

This drawer component 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 @seacoastpartners/drawer
npm install @seacoastpartners/drawer
yarn add @seacoastpartners/drawer

Usage

<script setup lang="ts">
import { DrawerContent, DrawerOverlay, DrawerPortal, DrawerRoot, DrawerTrigger } from '@seacoastpartners/drawer'
</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

About

Unstyled drawer component for Vue

Resources

License

Stars

Watchers

Forks

Contributors

Languages

  • TypeScript 50.7%
  • Vue 43.6%
  • CSS 5.0%
  • Other 0.7%