Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export useAlertContext #8433

Merged
merged 1 commit into from May 8, 2024
Merged

feat: export useAlertContext #8433

merged 1 commit into from May 8, 2024

Conversation

bhainesva
Copy link

Closes #8104

📝 Description

This PR exports the useAlertContext hook. This increases the flexibility users have for customizing the Alert and the Toast component that depends on it. A specific example is that this allows users to customize which icons are used for different Alert statuses by implementing a custom AlertIcon component without also implementing custom Alert and Toast components. There are more details in the linked issue.

⛳️ Current behavior (updates)

useAlertContext is not exported.

🚀 New behavior

useAlertContext is exported.

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

Not a breaking change, but an addition to the API surface.

📝 Additional Information

Hopefully I'm targeting the correct branch. I copied the format of this other PR that made a similar change: #6142.

Copy link

changeset-bot bot commented Apr 12, 2024

🦋 Changeset detected

Latest commit: 710093c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@chakra-ui/react Minor
@chakra-ui/test-utils Patch
@chakra-ui/docs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Apr 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
chakra-ui-storybook ✅ Ready (Inspect) Visit Preview Apr 12, 2024 7:35pm
chakra-ui-website ✅ Ready (Inspect) Visit Preview Apr 12, 2024 7:35pm

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.

None yet

2 participants