@@ -132,7 +132,7 @@ First, we need to define the modal structure of the DOM
Next, we need to create a Modal instance:
```typescript
-import { Modal } from 'native-modal'
+import { Modal } from 'tiny-dialogue'
const modal = new Modal('#modal')
@@ -143,9 +143,9 @@ modal.close() // easy to close!
Okay, how do I apply the parameters? Let's look at an example:
```typescript
-import { Modal } from 'native-modal'
+import { Modal } from 'tiny-dialogue'
-const modal = new Modal('#modal', {
+const modal = new Dialogue('#modal', {
animation: true, // enable open/close animation
disableEsc: true, // prevent esc closing
})
diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts
index cce23e2..216be51 100644
--- a/docs/.vitepress/config.ts
+++ b/docs/.vitepress/config.ts
@@ -2,8 +2,8 @@ import { defineConfig } from 'vitepress'
// https://vitepress.dev/reference/site-config
export default defineConfig({
- base: '/native-modal/',
- title: 'NativeModal',
+ base: '/tiny-dialogue/',
+ title: 'Dialogue',
description: 'Tiny wrapper over