Skip to content

Commit

Permalink
Update example document
Browse files Browse the repository at this point in the history
  • Loading branch information
bluzky committed Sep 28, 2024
1 parent 518c19d commit 5187f58
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/salad_ui/radio_group.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ defmodule SaladUI.RadioGroup do
Radio input group component
## Examples:
<.radio_group name="question-1" value="option-2">
<div class="flex items-center space-x-2">
<.radio_group_item builder={builder} value="option-one" id="option-one"></.radio_group_item>
<.label for="option-one">
Option One
</.label>
</div>
<div class="flex items-center space-x-2">
<.radio_group_item builder={builder} value="option-two" id="option-two"></.radio_group_item>
<.label for="option-two">
Option Two
</.label>
</div>
</.radio_group>
"""
attr :name, :string, default: nil
attr :value, :any, default: nil
Expand Down

0 comments on commit 5187f58

Please sign in to comment.