Skip to content

Alert

Alert communicates contextual information with optional icons, partner logos, descriptions, action buttons, size variants, and status colors.

Code
import { Alert, Button } from "@falcon/ui-kit/dist/legacy";
export function Example() {
return (
<Alert
buttons={
<>
<Button size={false}>Keep</Button>
<Button color="danger" size={false}>
Delete
</Button>
</>
}
description="Review the sync error before releasing this order."
iconName="bell"
title="Order needs attention"
/>
);
}
Code
import { Alert } from "@falcon/ui-kit/dist/legacy";
export function Example() {
return (
<div className="tw:flex tw:flex-col tw:gap-8">
<Alert
description="New account activity is available."
iconName="sign"
title="Account update"
/>
<Alert
description="Order sync failed. Retry before fulfillment."
iconName="attention"
title="Order sync failed"
variant="error"
/>
<Alert
description="Order confirmation was sent to the grower."
iconName="status-completed"
title="Order confirmed"
variant="success"
/>
<Alert
description="Inventory changed after the last save."
iconName="attention-outlined"
title="Inventory updated"
variant="neutral"
/>
</div>
);
}
Code
import { Alert, Button } from "@falcon/ui-kit/dist/legacy";
export function Example() {
return (
<Alert
buttons={
<>
<Button size={false}>Keep</Button>
<Button color="danger" size={false}>
Delete
</Button>
</>
}
iconName="bell"
title="Order needs attention"
/>
);
}
Code
import { Alert, Button } from "@falcon/ui-kit/dist/legacy";
export function Example() {
return (
<div className="tw:flex tw:flex-col tw:gap-8">
<Alert
buttons={<Button size={false}>View Leads</Button>}
partnerLogo={
<img
src="https://placehold.co/40x40"
style={{ width: 40, height: 40 }}
/>
}
title="You have a new lead from Syngenta"
/>
<Alert
buttons={<Button size={false}>View Leads</Button>}
partnerLogo={
<img
src="https://placehold.co/40x40"
style={{ width: 40, height: 40 }}
/>
}
size="large"
title="You have a new lead from Syngenta"
/>
</div>
);
}
Code
import { Alert } from "@falcon/ui-kit/dist/legacy";
export function Example() {
return <Alert title="Order needs attention" />;
}
buttons?: React.ReactNode
className?: string
description?: React.ReactNode
iconName?: string
partnerLogo?: React.ReactNode
size?: "large" | "regular" = "regular"
sx?: StyleProps
title: React.ReactNode
variant?: "neutral" | "error" | "success" | "warning" = "warning"