Products · Components

Notice

A message on the page, such as a warning or why a payment failed.

Add onClose to give it a close button.

Children: Text, which can include Text, Link and Icon within a line

Example

The Notice component
view.dml
<Notice tone="info" title="Scheduled maintenance">Payments may be slow on Sunday from 02:00 to 04:00.</Notice>

Props

PropTypeWhat it is
tonestatus toneDefault: default.
titlestring
padding, paddingTop, paddingStart, paddingEnd, paddingBottomspacingSpace inside its edges, all round or on one side.

Events

EventSendsNotes
onCloseNothingThe person tapped the close button. Hide the notice with an <If>.

Keep reading

On this page