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