BenixBenix DSv1.1.0

Banner

Inline alert for persistent messages. Four tones with appropriate icons.

Examples

All tones

Version 1.0 available

Production-ready. See the changelog on GitHub.

All good!

Components loaded successfully.

Heads up

Tailwind CSS 4 is required.
<Banner tone="info" title="Version 1.0 available">
Production-ready. See the changelog on GitHub.
</Banner>
<Banner tone="success" title="All good!">
Components loaded successfully.
</Banner>
<Banner tone="warning" title="Heads up">
Tailwind CSS 4 is required.
</Banner>
<Banner tone="error" title="Error">
A peer dependency is missing.
</Banner>

Without title

Quick inline message without a heading.
<Banner tone="info">Quick inline message without a heading.</Banner>

API Reference

Props of the Banner component.

PropTypeDefaultDescription
tone'info' | 'success' | 'warning' | 'error''info'
titleReactNodeOptional bold leading line.
children*ReactNodeBody content.
iconReactNode | nullOverride the default tone icon. Pass null to hide it.