Skip to content

Conversation

@DanielSinclair
Copy link
Collaborator

@DanielSinclair DanielSinclair commented Dec 7, 2025

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 noreply@anthropic.com


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.json to include components in exports.
  • Defined AvatarProps as a type in Avatar.tsx.
  • Added componentsBuildOptions for building components.
  • Expanded the build function to include component context.
  • Updated index.ts to export new components and types, including Avatar, ConnectButton, WalletButton, and modals.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@changeset-bot
Copy link

changeset-bot bot commented Dec 7, 2025

⚠️ No Changeset found

Latest commit: 9281ced

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

@vercel
Copy link

vercel bot commented Dec 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
rainbowkit-example Error Error Dec 7, 2025 8:17am
rainbowkit-site Ready Ready Preview Comment Dec 7, 2025 8:17am

@DanielSinclair
Copy link
Collaborator Author

DanielSinclair commented Dec 7, 2025

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

This stack of pull requests is managed by Graphite. Learn more about stacking.

@DanielSinclair DanielSinclair marked this pull request as ready for review December 7, 2025 06:17
@DanielSinclair DanielSinclair requested a review from a team as a code owner December 7, 2025 06:17
@DanielSinclair DanielSinclair changed the title feat: export components and update build system feat: internal component exports Dec 7, 2025
@DanielSinclair DanielSinclair force-pushed the daniel/type-safe-wallet-ids branch from 7204b49 to b6ff8bb Compare December 7, 2025 08:11
@DanielSinclair DanielSinclair force-pushed the daniel/component-exports branch from 99c0e14 to fd61c65 Compare December 7, 2025 08:11
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](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

2 participants