Skip to content

@agala-labs/ui

Toast

Displays brief, non-blocking feedback from a single root provider.

Examples

Default
toastManager.show({ message: 'Changes saved', variant: 'success' })

Import

import { AgalaToastProvider, toastManager } from '@agala-labs/ui'

API

PropTypeDefaultDescription
messagestringRequired toast message.
variant'default' | 'success' | 'warning' | 'danger''default'Semantic treatment.
durationnumberVisible duration in milliseconds; 0 persists.
action{ label; onClick }Optional toast action.

Accessibility

Mount one ToastProvider. Keep messages concise and do not use a toast as the only location for recoverable form errors.

Released under the MIT License.