Replies: 1 comment
-
|
Hey @eserdeiro Thanks for your suggestion. I will definitely think about it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
We’d like to request a way to customize the default toast container/background globally, without re-implementing the full default toast layout.
Context
Using
heroui-native@1.0.0, we can currently:defaultProps,insets,contentWrapper, etc.)componentintoast.show(...)But when using
component, we must manually recreateDefaultToaststructure (Title,Description,Action, icon behavior, etc.), which is hard to maintain and can diverge from upstream behavior.Requested capability
A public API to customize only the visual container of default toasts, for example one of these options:
toast.defaultRootClassName/toast.defaultRootStyletoast.defaultToastWrapper: (children) => ReactElementDefaultToastas stable public API so we can compose itUse case
Apply glass/mica-like backgrounds (e.g.
expo-glass-effect) while preserving all built-in default toast behavior (toast.show("..."),label,description,actionLabel, auto-dismiss, internal defaults, future updates).Why this would help
If there is already an official way to achieve this today (without re-implementing the default toast), please let us know the recommended approach.
Thanks for considering this 🙌
Beta Was this translation helpful? Give feedback.
All reactions