Skip to content

Notice

Status: ✅ Implemented

Surface a short, glanceable notice inside the UI — “2 quejas pendientes” in a guest panel, “stock bajo” next to a product — as a small tinted strip that can live anywhere: inside cards, columns or forms. Smaller than a callout card (no title/CTA block) and independent of the page-level banners.

Use the Notice component: one line of text, a small circular severity icon and an optional right-aligned action. themeinfo, success, warning or danger — tints the strip; icon overrides the theme’s default glyph.

Notice.builder()
.text(guest.complaints() + " quejas pendientes")
.theme("danger")
.actionLabel("Revisar").actionId("review")
.build()

The field’s value is the notice text — and a null/blank value hides the notice entirely, so the field doubles as its own visibility switch:

@Notice(theme = "danger", slim = true, fullWidth = true)
String quejas; // set it when there is something to say; leave blank to show nothing
ParameterEffect
themeinfo (default), success, warning, danger
iconoverrides the theme’s glyph (ℹ ✓ !) — an emoji renders at natural size, without the severity circle
noIconsuppresses the severity icon entirely
slimtight variant: no block margins, reduced padding, line-height: normal
fullWidthspans every form column (also stretches the wrapping field)
actionLabel + actionIdsmall right-aligned action, dispatched through the standard mechanism
statusright-aligned state text in the action’s spot — for the in-flight/done states of the notice’s action (e.g. “Enviando…”, “Firmado ✓”)

The fluent Notice also accepts content — any components rendered inside the tinted strip, below the text (or on their own when there is no text):

Notice.builder()
.text("2 quejas pendientes").theme("danger")
.content(List.of(BulletedList.builder()
.items(List.of("Aire acondicionado ruidoso", "Retraso en el room service"))
.build()))
.build()

Every web renderer (Vaadin, Redwood), React Native and the IntelliJ plugin. Also available from the C# (new Notice("…") { Theme = "danger" }) and Python (fluent.Notice(text=…, theme=…)) backends.

  • Callout card — the bigger sibling, with title and CTA block
  • Status list — rows of statuses with icons and actions