Skip to content

AlertBanner

frontend-react/src/components/ui/AlertBanner.tsx

Inline status banner for success/error/warning/info feedback inside views and modals.

Props

PropTypeDefaultDescription
typesuccess | error | warning | infoinfoColor theme
messagestringMain message text
closeablebooleanfalseShows × button to dismiss
childrenReactNodeOptional extra content below message

Usage

tsx
<AlertBanner type="success" message="Pedido confirmado!" closeable />
<AlertBanner type="error" message="Falha ao salvar.">
  <p>Verifique a conexão e tente novamente.</p>
</AlertBanner>

Notes

  • Dark mode supported via Tailwind dark: classes
  • Replaces previous inline bg-green-50/bg-red-50 patterns in FecharMesaScreen and other views

Lançado sob a licença MIT.