Skip to content

Commit

Permalink
Add labels to radio groups in example apps
Browse files Browse the repository at this point in the history
  • Loading branch information
mollykreis committed Oct 9, 2024
1 parent 7002d63 commit 8bdd98b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
<div class="sub-container">
<div class="container-label">Radio Buttons</div>
<nimble-radio-group>
<span slot="label">Fruit</span>
<nimble-radio name="fruit" value="apple" [(ngModel)]="selectedRadio">Apple</nimble-radio>
<nimble-radio name="fruit" value="banana" [(ngModel)]="selectedRadio">Banana</nimble-radio>
<nimble-radio name="fruit" value="mango" [(ngModel)]="selectedRadio">Mango</nimble-radio>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
<div class="sub-container">
<div class="container-label">Radio Buttons</div>
<NimbleRadioGroup Name="options" @bind-Value="@SelectedRadio">
<span slot="label">Options</span>
<NimbleRadio Value="1">Option 1</NimbleRadio>
<NimbleRadio Value="2">Option 2</NimbleRadio>
<NimbleRadio Value="3">Option 3</NimbleRadio>
Expand Down

0 comments on commit 8bdd98b

Please sign in to comment.