A alert displays an important, succinct message, and provides actions for users to address (or dismiss the alert).
Close
Display the close button.
Type
Default Value
bool
null
A new package update is available.
See what’s new in version 0.3.
<NVAlertClosePermanentColor="primary"><NVTextSize="sm"MediumMB="1">A new package update is available.</NVText><NVTextSize="sm">See what’s new in version 0.3.</NVText></NVAlert>
<divclass="nv-alert nv-panel nv-panel-level-1 gutter-x-3 primary p-4"><iclass="nv-alert-icon nv-icon nv-icon-speakerphone nv-icon-sm"></i><divclass="nv-alert-content"><pclass="nv-text text-sm font-medium mb-1">A new package update is available.</p><pclass="nv-text text-sm font-normal">See what’s new in version 0.3.</p></div><divclass="nv-alert-actions"><buttonclass="nv-btn nv-btn-level-3 nv-btn-icon nv-btn-xs"><iclass="nv-icon nv-icon-x"></i></button></div></div>
<nv-alertpermanentclosecolor="primary"><nv-textsize="sm"mediummb="1">
A new package update is available.
</nv-text><nv-textsize="sm">See what's new in version 0.3.
</nv-text></nv-alert>
<NvAlertcolor="primary"permanent><NvTextmb={1}mediumsize="sm">
A new package update is available.
</NvText><NvText>
See what’s new in version 0.3.
</NvText></NvAlert>
Icon
Change icon of the Alert. By default an icon is linked to colors : neutral (flag), primary (speakerphone), secondary ( info-circle), success (circle-check) and error (alert-circle).
Visible boolean let us to display or hide the alert with an animation. The animation will be play when the value Visible change. If on first rendering Visible is True, it act as Permanent boolean. The alert will be visible (no appearing animation is played).
Type
Default Value
bool
false
A new package update is available.
See what’s new in version 0.3.
<buttonclass="nv-btn mb-3">Toggle</button><divclass="nv-alert nv-panel nv-panel-level-1 primary"><iclass="nv-alert-icon nv-icon nv-icon-speakerphone nv-icon-sm"></i><divclass="nv-alert-content">
A new package update is available. <br>
See what’s new in version 0.3.
</div></div>
VisibleChanged
Used for the dual binding of Visible. Cfr. Visible parameter above.