# @triptyk/ember-modal

> Easy tailwindcss modal in Ember.JS

Latest version **1.0.0-beta.18** (published 2023-09-19) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @triptyk/ember-modal
pnpm add @triptyk/ember-modal
yarn add @triptyk/ember-modal
bun add @triptyk/ember-modal
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0-beta.18 |
| Published | 2023-09-19 |
| First published | 2022-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 14.* \|\| 16.* \|\| >= 18 |
| Dependencies | 6 |
| Unpacked size | 17.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Triptyk |
| Maintainers | vesass, dramixdw, remadex, tcdp, amauryd |
| Keywords | ember-addon, modal, ember, TailwindCSS |

## Links

- npm: https://www.npmjs.com/package/@triptyk/ember-modal
- npm.io page: https://npm.io/package/@triptyk/ember-modal

## Dependencies (6)

- [focus-trap](https://npm.io/package/focus-trap.md) ~7.0.0
- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ~7.26.11
- [ember-auto-import](https://npm.io/package/ember-auto-import.md) ~2.6.1
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ~6.2.0
- [ember-cli-typescript](https://npm.io/package/ember-cli-typescript.md) ~5.1.1
- [ember-test-selectors](https://npm.io/package/ember-test-selectors.md) ~6.0.0

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

- 1.0.0-beta.18 (latest) — 2023-09-19
- 1.0.0-beta.17 (beta) — 2023-08-24
- 1.0.0-beta.16 — 2023-08-22
- 1.0.0-beta.15 — 2023-08-22
- 1.0.0-beta.14 — 2023-08-07
- 1.0.0-beta.13 — 2023-07-07
- 1.0.0-beta.12 — 2023-07-03
- 1.0.0-beta.11 — 2023-06-30
- 1.0.0-beta.10 — 2023-06-29
- 1.0.0-beta.9 — 2023-05-31
- 1.0.0-beta.8 — 2023-05-24
- 1.0.0-beta.7 — 2023-05-24
- 1.0.0-beta.6 — 2023-05-23
- 1.0.0-beta.5 — 2023-05-12
- 1.0.0-beta.4 — 2023-05-05
- … 28 more at https://npm.io/package/@triptyk/ember-modal/versions

## README

ember-modal
==============================================================================

This addon will give you a simple stackable dialog system


## Compatibility

* Ember.js v3.24 or above
* Ember CLI v3.24 or above
* Node.js v12 or above
* You need tailwind v2 or above to use this simple textarea


## Installation

```zsh
ember install @triptyk/ember-modal
```
OR
```zsh
pnpm add -D @triptyk/ember-modal
```


Usage
------------------------------------------------------------------------------
#### Features

-  Modal dialog, can stack on each other
-  Triggers @onClose on ESC key press or click outside.
-  Customatizable content.

#### Integration example 

Arguments : 
  -  @title : The title of the modal - needed for Accessibility (won't show by default visually)
  -  @isOpen : The variable that toggles the modal
  -  @onClose : The function triggered when modal is trying to get closed
  -  @classless : Disable generated css classes
  -  @outsideClickHandler : Custom handler for click outside

```hbs
  <TpkModal
    @title='title'
    @isOpen={{this.open2}}
    @onClose={{this.closed2}}
    @classless={{false}}
    as |M|
  >
  <M.Content>
      <button type="button">Hello</button>
  </M.Content>
</TpkModal>
```



For the extended syntax, [see examples](/packages/ember-modal/tests/dummy/app/components/ui-show.hbs).

Structure of the component (Emmet like)
------------------------------------------------------------------------------

- Modal
  - div.tpk-modal-container
    - Modal::Content.tpk-modal-content

## Contributing

See the [Contributing](CONTRIBUTING.md) guide for details.
You can also contact info@triptyk for more informations on how contributing on this project.


## License

This project is licensed under the [MIT License](LICENSE.md).

---
_Source: https://npm.io/package/@triptyk/ember-modal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
