Skip to content

docs(native): fix button compound API and useThemeColor destructuring in docs#6299

Open
vvv-sss wants to merge 2 commits intov3from
docs/native-popover-example-fix
Open

docs(native): fix button compound API and useThemeColor destructuring in docs#6299
vvv-sss wants to merge 2 commits intov3from
docs/native-popover-example-fix

Conversation

@vvv-sss
Copy link
Contributor

@vvv-sss vvv-sss commented Mar 9, 2026

📝 Description

Updates two HeroUI Native documentation files to reflect the correct component API. The popover.mdx example is corrected to use the proper Button.Label compound component (instead of Button.LabelContent) and removes the now-unnecessary Button.StartContent wrapper. The colors.mdx example is updated to use array destructuring for useThemeColor, which matches the actual hook return signature.

⛳️ Current behavior (updates)

The popover example uses Button.StartContent and Button.LabelContent sub-components that do not reflect the current API. The colors guide shows object destructuring for useThemeColor, which is incorrect since the hook returns an array.

🚀 New behavior

  • Popover trigger button example uses Button.Label (correct compound API) and places the icon directly inside Button without a wrapper
  • useThemeColor multi-select example uses array destructuring const [accent, accentForeground, success, danger] = useThemeColor([...])

💣 Is this a breaking change (Yes/No):

No — These are documentation-only changes correcting code examples; no library source code is modified.

📝 Additional Information

Both fixes are in apps/docs/content/docs/native/ and require no dependency changes. Reviewers should verify the corrected examples match the current HeroUI Native Beta API for Button compound components and useThemeColor.

@vvv-sss vvv-sss requested a review from jrgarciadev as a code owner March 9, 2026 10:48
@vercel
Copy link

vercel bot commented Mar 9, 2026

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

Project Deployment Actions Updated (UTC)
heroui Ready Ready Preview, Comment Mar 9, 2026 10:50am
heroui-sb Ready Ready Preview, Comment Mar 9, 2026 10:50am

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Mar 9, 2026

⚠️ No Changeset found

Latest commit: 2a96102

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 9, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@heroui/react@6299
npm i https://pkg.pr.new/@heroui/styles@6299

commit: 121a942

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.

1 participant