Skip to content

Accept tabIndex on <RadioGroup> component - #3646

Merged
RobinMalfait merged 2 commits into
mainfrom
feat/allow-tab-index-on-radio-group
Feb 21, 2025
Merged

RobinMalfait merged 2 commits into
mainfrom
feat/allow-tab-index-on-radio-group

Conversation

@RobinMalfait

Copy link
Copy Markdown
Collaborator

This PR allows you to pass a tabIndex to the <RadioGroup> component and it will internally pass it down to the correct <Radio /> or <RadioGroupOption> component.

The reason we do it this way is because only a single radio should be focusable (moving between radios can be done via the arrow keys instead of the tab key).

This will pass it down to the correct `<Radio />` or
`<RadioGroupOption>` component.
@vercel

vercel Bot commented Feb 21, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
headlessui-react βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 21, 2025 3:27pm
headlessui-vue βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 21, 2025 3:27pm

This branch was successfully deployed

2 active deployments
Preview – headlessui-react β€” c12ffe88 Deployed Feb 21, 2025 by vercel[bot]
Preview – headlessui-vue β€” c12ffe88 Deployed Feb 21, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant