More utility components

One for a "map" of sorts and one for selecting one element of a list
This commit is contained in:
Melody Becker 2024-10-25 16:54:11 +02:00
parent 07614e9a6d
commit f0638af99f
5 changed files with 127 additions and 0 deletions

View file

@ -0,0 +1,12 @@
<div class="{{@wrapper-class}}">
{{#each @elements as |element|}}
<RadioButton
@value="{{element}}"
@groupValue={{@selected}}
@name={{@name}}
@required={{@required}}
>
{{element}}
</RadioButton>
{{/each}}
</div>