0.1.5 โ€ข Published 5 months ago

@haebaragi/better-dialog v0.1.5

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Better Dialog (ฮฒ)

A lightweight, flexible modal library powered by the native <dialog> element.

๐Ÿšง This library is currently in beta. The API may change.


โœจ Features

  • Built on native <dialog>
  • Show/close lifecycle hooks
  • Plugin & animation support
  • No built-in styles
  • Zero dependencies

๐Ÿ“ฆ Installation

npm install @haebaragi/better-dialog

๐Ÿ”— Documentation

Full usage examples, plugin guides, and API reference are available at:

๐Ÿ‘‰ https://better-dialog.haebaragi.net


๐Ÿงช Quick Example

<button data-better-dialog-show="my-dialog">Open Dialog</button>

<dialog id="my-dialog">
  <p>Hello, World!</p>
  <button data-better-dialog-close>Close</button>
</dialog>
import { BetterDialog } from '@haebaragi/better-dialog';
import { fadeAnimation } from '@haebaragi/better-dialog/animations';

new BetterDialog('#my-dialog', {
  animation: fadeAnimation({ duration: 300 }),
});

License

MIT
(c) 2025 @izakikazuho

0.1.5

5 months ago

0.1.4

5 months ago

0.1.3

5 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago