Skip to content

Alert

The Alert component displays important messages with different severity levels.

Good morning!

Your cup of coffee is ready.

import { Alert } from '@fintech-sandpit/ui/react';
import { faCupHot, faInfoCircle } from '@fortawesome/free-solid-svg-icons';
return (
<Alert
icon={faCupHot}
status="info"
size="md"
variant="solid"
>
<p>
<strong>Good morning!</strong>
</p>
<p>Your cup of coffee is ready.</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'