rainbowkit icon indicating copy to clipboard operation
rainbowkit copied to clipboard

feat: internal component exports

Open DanielSinclair opened this issue 1 month ago • 3 comments

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.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}

DanielSinclair avatar Dec 07 '25 06:12 DanielSinclair

⚠️ 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

changeset-bot[bot] avatar Dec 07 '25 06:12 changeset-bot[bot]

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

vercel[bot] avatar Dec 07 '25 06:12 vercel[bot]

[!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 avatar Dec 07 '25 06:12 DanielSinclair