Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

Fix RadioGroup example code #27

Merged
merged 1 commit into from
Apr 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/pages/headless-ui-v1/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,17 @@ function MyRadioGroup() {
<RadioGroup.Label>Plan</RadioGroup.Label>
<RadioGroup.Option value="startup">
{({ checked }) => (
<span className={`${checked} ? 'bg-blue-200' : ''`}>Startup</span>
<span className={checked ? 'bg-blue-200' : ''}>Startup</span>
)}
</RadioGroup.Option>
<RadioGroup.Option value="business">
{({ checked }) => (
<span className={`${checked} ? 'bg-blue-200' : ''`}>Business</span>
<span className={checked ? 'bg-blue-200' : ''}>Business</span>
)}
</RadioGroup.Option>
<RadioGroup.Option value="enterprise">
{({ checked }) => (
<span className={`${checked} ? 'bg-blue-200' : ''`}>Enterprise</span>
<span className={checked ? 'bg-blue-200' : ''}>Enterprise</span>
)}
</RadioGroup.Option>
</RadioGroup>
Expand Down