open-nomad/ui/app/components/toggle.js
2020-01-23 16:34:32 -08:00

14 lines
284 B
JavaScript

import Component from '@ember/component';
export default Component.extend({
tagName: 'label',
classNames: ['toggle'],
classNameBindings: ['isDisabled:is-disabled', 'isActive:is-active'],
'data-test-label': true,
isActive: false,
isDisabled: false,
onToggle() {},
});