Atoms
Alert
Displays a callout for important messages.
shadcn/uiBased on shadcn/ui with Formance brand styling.
Installation#
npx shadcn@latest add @formance/alertInstall the following dependencies:
npm install class-variance-authorityCopy and paste the following code into your project.
Update the import paths to match your project setup.
Usage#
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'<Alert> <AlertTitle>Transaction processing paused</AlertTitle> <AlertDescription> Payments to this ledger have been temporarily suspended. Check your connector configuration for details. </AlertDescription></Alert>