This package has been deprecated

Author message:

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

@triptyk/tpk-ember-checkbox

0.0.2 • Public • Published

tpk-ember-checkbox

This addon will give you a simple checkbox alternative in TailwindCSS

Compatibility

  • Ember.js v3.20 or above
  • Ember CLI v3.20 or above
  • Node.js v12 or above
  • You need tailwind v2 or above to use this simple checkbox

Installation

ember install @triptyk/tpk-ember-checkbox

OR

pnpm add -D @triptyk/tpk-ember-checkbox

Usage

Integration example

Template .hbs

<Ui::Checkbox
  @label="RGPD ?"
  @checked={{this.checked}}
  @updateValue={{this.setValue}}
  @value={{this.value}}
  @name="rgpd"
  @imageUrl='/assets/icons/check.svg'
  @containerStyle=""
  @checkboxStyle=""
  @labelStyle=""
/>

Controller .ts/.js

@tracked value = '';

@tracked checked: boolean = false;
value: string = 'rgpd';

@action
setChecked(checked: boolean) {
  this.checked = checked;
}

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/tpk-ember-checkbox

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

11.5 kB

Total Files

16

Last publish

Collaborators

  • amauryd
  • dramixdw
  • remadex
  • tcdp
  • vesass