Update React/Next.js Components documentation with new React components #581
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR updates the React/Next.js Components documentation to use the new React components introduced in AppKit PR #4687, replacing HTML elements with proper React component usage.
Key Changes:
Updated shared components snippet (
snippets/appkit/shared/components.mdx):Updated React Solana trigger modal (
appkit/react/solana/triggermodal.mdx):<appkit-button />HTML element with<AppKitButton />React componentimport { AppKitButton } from "@reown/appkit/react"Restructured React components page (
appkit/react/core/components.mdx):Restructured Next.js components page (
appkit/next/core/components.mdx):Component Mapping (based on AppKit PR #4687):
<appkit-button />→<AppKitButton /><appkit-connect-button />→<AppKitConnectButton /><appkit-account-button />→<AppKitAccountButton /><appkit-network-button />→<AppKitNetworkButton /><appkit-wallet-button />→<AppKitWalletButton />Import Paths:
@reown/appkit/react@reown/appkit-wallet-button/reactTests
Critical Review Items
import { AppKitButton, AppKitConnectButton, AppKitAccountButton, AppKitNetworkButton } from "@reown/appkit/react"actually worksimport { AppKitWalletButton } from "@reown/appkit-wallet-button/react"is correctDirect link to the deployed preview files
Link to Devin run: https://app.devin.ai/sessions/4ee93d4237894bf4b22f7e5f28a10324
Requested by: [email protected]