Feedback v1.0.0

Banner

Barra de anúncio persistente para mensagens importantes, promoções ou avisos. Suporta fechamento com persistência em localStorage, botões de ação e múltiplas variantes. Pode ser fixado no topo ou na parte inferior do viewport, ou renderizado em linha no fluxo do documento.

Pré-visualização e Código

Opções

Nome Tipo Padrão Descrição
message * String obrigatório The banner message text
variant Symbol :info Visual style: :info, :success, :warning, or :error
dismissible Boolean false Whether the banner can be dismissed
persist_dismiss Boolean false Remember dismissal via localStorage (requires dismiss_key)
dismiss_key String nil localStorage key for persistent dismissal
action_text String nil Text for the action button/link
action_url String nil URL for the action button
position Symbol :top Banner position: :top, :bottom, or :inline
icon Boolean true Show the variant icon

Changelog v1.0.0

- Initial release with info, success, warning, and error variants
- Fixed top/bottom positioning and inline rendering mode
- Dismissible with optional localStorage persistence
- Optional action button/link with arrow icon
- Variant-specific icons and color schemes with dark mode support

Obter Acesso Completo

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

Obter Acesso Agora