This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@triptyk/ember-modal

1.0.0-beta.18 • Public • Published

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

ember install @triptyk/ember-modal

OR

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
  <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.

Structure of the component (Emmet like)

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

Contributing

See the Contributing 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.

Package Sidebar

Install

npm i @triptyk/ember-modal

Weekly Downloads

562

Version

1.0.0-beta.18

License

MIT

Unpacked Size

18 kB

Total Files

32

Last publish

Collaborators

  • amauryd
  • dramixdw
  • remadex
  • tcdp
  • vesass