Skip to content

Alert

The Alert component displays important messages with different severity levels.

Good morning!

Your cup of coffee is ready.

Hey!

Please note our holiday hours.

Success!

Your payment was processed successfully. Thank you!

Heads up!

Your password will expire in 3 days. Consider updating it now.

Error!

Unable to connect to the server. Please try again later or contact support.

import { Container } from '@fintech-sandpit/ui/react';
import { faCupHot } from '@fortawesome/free-solid-svg-icons';
return (
<Alert icon={faCupHot}>
<p>
<strong>Good morning!</strong>
</p>
<p>Your cup of coffee is ready.</p>
</Alert>
<Alert status="success">
<p>
<strong>Success!</strong>
</p>
<p>Your payment was processed successfully. Thank you!</p>
</Alert>
<Alert status="warning">
<p>
<strong>Heads up!</strong>
</p>
<p>Your password will expire in 3 days. Consider updating it now.</p>
</Alert>
<Alert status="danger">
<p>
<strong>Error!</strong>
</p>
<p>Unable to connect to the server. Please try again later or contact support.</p>
</Alert>
);
NameTypeDefaultDescription
iconIconDefinition 1Custom icon 2
sizeAlertSizemdAlert size
statusAlertStatusinfoAlert type
variantAlertVariantsolidAlert variant styling
  1. See Icons for the list of available icon definitions.
  2. If no icon is provided, the icon will be auto-selected based on the status prop.
type AlertSize = 'sm' | 'md' | 'lg'
type AlertStatus = 'info' | 'success' | 'warning' | 'danger'
type AlertVariant = 'solid' | 'subtle' | 'outline'