Variants

<Alert variant="light" title="Light">...</Alert>
<Alert variant="filled" title="Filled">...</Alert>
<Alert variant="outline" title="Outline">...</Alert>
<Alert variant="transparent" title="Transparent">...</Alert>
<Alert variant="default" title="Default">...</Alert>

Color

<Alert color="blue" title="Info" icon={<InfoIcon />}>
  This is an informational alert.
</Alert>

<Alert color="yellow" title="Warning" icon={<WarningIcon />}>
  Please review before continuing.
</Alert>

<Alert color="green" title="Success" icon={<CheckIcon />}>
  Your changes have been saved.
</Alert>

<Alert color="red" title="Error" icon={<WarningIcon />}>
  Something went wrong.
</Alert>

Without title

<Alert color="blue" icon={<InfoIcon />}>
  Alert without a title.
</Alert>

<Alert color="violet">
  Message only — no icon or title.
</Alert>

Radius

<Alert radius="xs" color="violet" title="Sharp">...</Alert>
<Alert radius="xl" color="violet" title="Rounded">...</Alert>

Props

PropTypeDefaultDescription
variant'light'|'filled'|'outline'|'transparent'|'white'|'default''light'Visual style variant
colorUiColorTheme color applied per variant
radius'xs'|'sm'|'md'|'lg'|'xl'|stringCorner radius
titlechildrenHeading shown above the message
iconchildrenIcon element rendered to the left
withCloseButtonbooleanReserves space for a close button (visual only)