Skip to content

94726/aioli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1b3f054 · Aug 8, 2024

History

26 Commits
Aug 8, 2024
Aug 3, 2024
Aug 8, 2024
Jan 2, 2024
Jan 2, 2024
Aug 3, 2024
Jan 2, 2024
Jan 2, 2024
Aug 3, 2024
Aug 3, 2024
Aug 8, 2024
Jan 2, 2024

Repository files navigation

aioli

This is a drawer/bottom-sheet library based on radix-vue. It is heavily inspired by Vaul and pretty much a Vue port of it.

Installation

pnpm add aioli radix-vue

npm install aioli radix-vue

yarn add aioli radix-vue

Usage

<script setup>
import { DialogRoot, DialogTrigger, DialogPortal, DialogOverlay, DialogContent } from 'aioli';
</script>

<template>
<DialogRoot>
  <DialogTrigger>Open</DialogTrigger>
  <DialogPortal>
    <DialogContent>
      Content
    </DialogContent>
    <DialogOverlay />
  </DialogPortal>
</DialogRoot>
</template>

Credits

  • Vaul for the awesome drawer idea/implementation ❤️
  • radix-vue for the Radix UI port
  • VueUse

Why the name?

Originally I wanted to name it something along the lines of vaul-vue but while porting Vaul I realized that I wanted to make some changes to the Implementation and API. Naming it vaul-vue seemed a bit misleading then.

So I decided to name it something else. I couldn't think of anything for a while. Ultimately some friends suggested Aioli and I just went with it.