Skip to main content

Message

Function Message 

Source
pub fn Message(props: MessageProps) -> impl IntoView
Expand description

Colored message blocks, to emphasize part of your page. https://bulma.io/documentation/components/message/

§Required Props

  • children: Children
    • Child content of the message (usually MessageHeader and MessageBody).

§Optional Props

  • classes: impl Into<Signal<String>>
    • Extra classes to apply to the Bulma “message” container (e.g., is-primary, is-warning).
  • closable: impl Into<Signal<bool>>
    • When true, renders a close button in the top-right that hides the entire message when clicked.
  • test_attr: impl Into<TestAttr>
    • Optional test attribute (renders as data-* attribute) on the root

      .

      When provided as a &str or String, this becomes data-testid="value". You can also pass a full TestAttr to override the attribute key.