Banner
Implemented FeedbackInline message bar with variants and optional action.
Kumo reference: kumo-ui.com/components/banner/
Presentation commands show demo feedback. Read the interaction guide to connect real actions.
Information
Show template
{% load wdj %}
<div class="flex w-full flex-col gap-3">
{% include "wdj/components/banner.html" with title="Update available" text="A new version is ready to install." only %}
{% include "wdj/components/banner.html" with variant="alert" title="Session expiring" text="Your session will expire in 5 minutes." only %}
{% include "wdj/components/banner.html" with variant="error" title="Save failed" text="We couldn't save your changes. Please try again." only %}
{% include "wdj/components/banner.html" with variant="secondary" title="Maintenance scheduled" text="This service will be unavailable for 10 minutes." only %}
</div>
Warning
Show template
{% load wdj %}
{% include "wdj/components/banner.html" with variant="alert" title="Quota approaching" text="Storage is nearly full." only %}
Error
Show template
{% load wdj %}
{% include "wdj/components/banner.html" with variant="error" title="Request failed" text="Try again later." only %}
Secondary
Show template
{% load wdj %}
{% include "wdj/components/banner.html" with variant="secondary" text="Changes are saved automatically." only %}
Dismissible
Show template
{% load wdj %}
{% include "wdj/components/banner.html" with title="Release notes" text="Review the latest changes." dismissible=True only %}
Small
Show template
{% load wdj %}
{% include "wdj/components/banner.html" with title="Update available" size="sm" only %}
With action
Show template
{% load wdj %}
{% wdj_component "wdj/components/banner.html" title="New version available" %}
{% include "wdj/components/button.html" with label="View release notes" href="/components/" only %}
{% endwdj_component %}
Success message
Show template
{% load wdj %}
{% include "wdj/components/banner.html" with variant="secondary" icon="check-circle-2" title="Changes saved" only %}
Description only
Show template
{% load wdj %}
{% include "wdj/components/banner.html" with description="Configuration is saved automatically." only %}
Title only
Show template
{% load wdj %}
{% include "wdj/components/banner.html" with title="Update available" only %}
With icon
Show template
{% load wdj %}
{% include "wdj/components/banner.html" with icon="rocket" title="Deployment ready" only %}
Without dismissal
Show template
{% load wdj %}
{% include "wdj/components/banner.html" with title="Persistent information" text="Review this information." only %}
Compact warning
Show template
{% load wdj %}
{% include "wdj/components/banner.html" with variant="alert" size="sm" title="Quota approaching" only %}
Compact error
Show template
{% load wdj %}
{% include "wdj/components/banner.html" with variant="error" size="sm" title="Request failed" only %}
Long content
Show template
{% load wdj %}
{% include "wdj/components/banner.html" with title="Access policy" description="Review the permissions assigned to this project before granting access to additional workspace members." only %}
Multiple trailing actions
Show template
{% load wdj %}
{% include "wdj/components/banner.html" with title="Review deployment" description="Check the changes before continuing." actions=audit_actions only %}
Compact with CTA
Show template
{% load wdj %}
{% include "wdj/components/banner.html" with size="sm" text="A new configuration is available." actions=audit_actions only %}
Custom content
Show template
{% load wdj %}
{% wdj_component "wdj/components/banner.html" variant="secondary" %}
<p>Review <strong class="font-medium">these settings</strong> before continuing.</p>
{% endwdj_component %}
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | unset | Title; pass the documented value shown in the examples. |
| description | string | unset | Description; pass the documented value shown in the examples. |
| text | string | unset | Text; pass the documented value shown in the examples. |
| variant | string | component-specific | Variant; pass the documented value shown in the examples. |
| size | string | base | Size; pass the documented value shown in the examples. |
| icon | string | unset | Icon; pass the documented value shown in the examples. |
| action | string / HTML slot | unset | Action; pass the documented value shown in the examples. |
| actions | list[dict] | unset | Actions; pass the documented value shown in the examples. |
| dismissible | bool | False | Dismissible; pass the documented value shown in the examples. |
| slot | string / HTML slot | unset | Rich HTML supplied by the wdj_component block tag, rendered in an isolated context. |
| attrs | dict | {} | Dictionary of escaped native, HTMX or Alpine attributes. Literal Tailwind classes only. |
| class | string | "" | Class; pass the documented value shown in the examples. |