Feedback v1.1.0

Toast

Notificações toast empilháveis e banners de mensagens flash para feedback ao usuário. Suporta variantes de sucesso, erro, aviso e informação com posição configurável, duração de fechamento automático e múltiplos estilos visuais.

Padrão

Notificação toast individual empilhável com destaque de borda esquerda

Opções

Nome Tipo Padrão Descrição
title String Optional bold title text
message * String obrigatório 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)

Flash padrão

Banner de largura total no topo da página para mensagens flash do Rails

Opções

Nome Tipo Padrão Descrição
messages * Hash obrigatório 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

Flash toast

Notificações toast empilháveis posicionadas no canto para mensagens flash do Rails

Opções

Nome Tipo Padrão Descrição
messages * Hash obrigatório 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

Changelog 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

Obter Acesso Completo

Desbloqueie o código-fonte deste componente e de todos os outros. Pagamento único para acesso vitalício.

Obter Acesso Agora