chore: 🤖 add select field component

This commit is contained in:
Randall Morey committed 2020-05-06 13:46:48 -04:00
1 parent ffb5d6e510
commit ff45fee2d1
12 files changed
+335 -2

No files matched your search

@@ -0,0 +1,27 @@
import Component from '@ember/component';
import layout from '../../../templates/components/rose/form/select';
/**
* A `<select>` element context component which yields option components.
*
* @example
* <Rose::Form::Select
* @id="select-id-1"
* name="select-field-name"
* @value="current-value"
* @label="Label"
* @helperText="Helper text"
* @error={{true}}
* @onChange={{fn this.selectChange}}
* disabled={{true}}
* as |select|
* >
* <select.option>Choose an option</select.option>
* <select.option @value="current-value">Curret value</select.option>
* </Rose::Form::Select>
*/
export default Component.extend({
layout,
tagName: '',
});