Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save colmtuite/e09ab4dfa98cbc24e076a03aa1e7ada1 to your computer and use it in GitHub Desktop.

Select an option

Save colmtuite/e09ab4dfa98cbc24e076a03aa1e7ada1 to your computer and use it in GitHub Desktop.
I want you to migrate my Radix Select component to Base UI Select.
First, install @base-ui/react
Then read the guide for how composition and component replacement works in Base UI:
https://base-ui.com/react/handbook/composition.md
Then read the guide for how animation works in Base UI:
https://base-ui.com/react/handbook/animation.md
Then read the entire Select component documentation
https://base-ui.com/react/components/select.md
Then migrate my Select component to Base UI. Make sure to replace asChild with Base UI’s render prop. And make sure to check for any new Base UI parts, props, variables, or attributes, that don’t exist in Radix or are named differently in Radix.
Then update every instance of my Select throughout my app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment