Introduction
Use the<Alert> component to display a message to the user. The component can be used to display a success, warning, or error message.
Usage
To use<Alert> in your React component, import it from @latitude-data/react and include it in your component as follows:
Properties
Change the style of the alert. Options are:
notesuccesswarningerror
In combination with
type it produce a different style for the alert with a softer background when is set to trueBy default text in the alert is centered. If you want to be left aligned set it to
falseControls how the text inside the alert is presented. Options are:
normalmediumboldBy defaul is set tonormal.