Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@zestia/ember-messages

2.1.8 • Public • Published

@zestia/ember-messages

This Ember addon provides a component for rendering messages, which can optionally be dismissed by the user.

Additionally, messages can be flashed using the flash message service.

Installation

ember install @zestia/ember-messages

Notes

  • This package intentionally does not come with any styles.

Examples

Standalone message

<Message @type="your-type-goes-here">
  Content goes here
</Message>

Dismissable message

{{#if this.showMessage}}
  <Message @type="warning" @dismissable={{true}} @onDismiss={{this.hideMessage}}>
    Clicking hide will fire the dismiss action after a CSS transition
  </Message>
{{/if}}

Flash messages

@inject('flash-message') flashMessageService;
// ...
this.flashMessageService.add('error', 'Something went wrong!');
<FlashMessages />

Install

npm i @zestia/ember-messages

DownloadsWeekly Downloads

16

Version

2.1.8

License

MIT

Unpacked Size

9.39 kB

Total Files

19

Last publish

Collaborators

  • avatar
  • avatar
  • avatar