feat: internal component exports
Adds new component exports and updates the build configuration to support separate component builds.
Changes:
- Export Avatar component with loading state support
- Export AccountModal and ChainModal components
- Add components/package.json for proper module resolution
- Update build.js to support components build
- Update src/components/index.ts with component re-exports
- Update example to use typed wallet IDs with 'as const'
This enables developers to use RainbowKit UI components individually in custom wallet connection flows.
🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]
PR-Codex overview
This PR focuses on enhancing the rainbowkit package by adding component exports, updating build configurations, and defining new types for Avatar and other components.
Detailed summary
- Updated
package.jsonto includecomponentsin exports. - Defined
AvatarPropsas a type inAvatar.tsx. - Added
componentsBuildOptionsfor building components. - Expanded the
buildfunction to include component context. - Updated
index.tsto export new components and types, includingAvatar,ConnectButton,WalletButton, and modals.
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}
⚠️ No Changeset found
Latest commit: 9281ced7e0b4b68f9ff4666e113754f2a5a5ab09
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| rainbowkit-example | Dec 7, 2025 8:17am | |||
| rainbowkit-site | Preview | Comment | Dec 7, 2025 8:17am |
[!WARNING] This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite. Learn more
-
#2589
👈 (View in Graphite)
-
#2588
-
#2590
-
main
This stack of pull requests is managed by Graphite. Learn more about stacking.