Feedback v1.1.0

Toast

Stapelbare Benachrichtigungs-Toasts und Flash-Meldungsbanner für Benutzer-Feedback. Unterstützt Erfolgs-, Fehler-, Warn- und Infovarianten mit konfigurierbarer Position, automatischer Ausblendedauer und mehreren visuellen Stilen.

Standard

Einzelner stapelbarer Toast-Hinweis mit linkem Rand-Akzent

Optionen

Name Typ Standard Beschreibung
title String Optional bold title text
message * String erforderlich The notification message
variant Symbol :info Style: :success, :error, :warning, :info
dismissible Boolean true Show close button
duration Integer 5000 Auto-dismiss time in milliseconds (0 to disable)

Standard-Flash

Vollbreites Banner am oberen Seitenrand für Rails-Flash-Meldungen

Optionen

Name Typ Standard Beschreibung
messages * Hash erforderlich Flash hash (keys: :notice/:alert/:error/:warning, values: message strings)
auto_dismiss Boolean true Automatically dismiss after duration
duration Integer 5000 Auto-dismiss time in milliseconds
dismissible Boolean true Show close button on each message

Toast-Flash

In der Ecke positionierte stapelbare Toast-Benachrichtigungen für Rails-Flash-Meldungen

Optionen

Name Typ Standard Beschreibung
messages * Hash erforderlich Flash hash (keys: :notice/:alert/:error/:warning, values: message strings)
position Symbol :top_right Position: :top_right, :top_left, :bottom_right, :bottom_left
auto_dismiss Boolean true Automatically dismiss after duration
duration Integer 5000 Auto-dismiss time in milliseconds
dismissible Boolean true Show close button on each toast

Änderungsprotokoll v1.1.0

- v1.1.0: Added standard-flash and toast-flash styles for Rails flash messages
- v1.0.0: Initial release with success, error, warning, info variants
- Auto-dismiss with configurable duration
- Pause auto-dismiss on hover
- Smooth enter/exit animations
- Accessible with role="alert" and aria-live

Vollzugang erhalten

Schalte den Quellcode für diese und alle anderen Komponenten frei. Einmalige Zahlung für lebenslangen Zugang.

Jetzt Zugang erhalten