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,22 @@
<div class="rose-form-select{{if @error " error"}}">
<label class="rose-form-select-label" for={{@id}}>
{{@label}}
</label>
{{#if @helperText}}
<span class="rose-form-select-helper-text">{{@helperText}}</span>
{{/if}}
<XSelect
...attributes
class="rose-form-select-field"
id={{@id}}
@value={{@value}}
@onChange={{@onChange}}
as |xs|
>
{{yield xs}}
</XSelect>
</div>