This component is being renamed to Snackbar for better clarity
⚠️ Deprecation Notice: This component is being renamed to “Snackbar” for better clarity and user experience. TheHuxAlert
class name in your code remains unchanged - this is just a documentation improvement. 📖 New Documentation: See Snackbar for the updated and improved documentation. 🔄 Migration: No code changes required. Your existingHuxAlert
usage will continue to work exactly as before.
variant
- Alert type (info, success, destructive)title
- Alert heading textmessage
- Main alert contentshowIcon
- Whether to display the variant icononDismiss
- Callback when dismiss button is clickeddismissible
- Whether the alert can be dismissed (default: true)HuxAlertVariant.info
)HuxAlertVariant.success
)HuxAlertVariant.destructive
)HuxTokens.surfaceSuccess(context)
/ HuxTokens.surfaceDestructive(context)
HuxTokens.textSuccess(context)
/ HuxTokens.textDestructive(context)