Skip to main content

Alert

A contextual alert banner with severity levels, optional title, and dismiss support.

Import

import { Alert } from '@synapse-ui/alert';

Basic Usage

<synapse-alert severity="success" title="All done!"> Your changes have been saved. </synapse-alert>

Inputs

InputTypeDefaultDescription
severity'info' | 'success' | 'warning' | 'error''info'Colour and icon theme
titlestring | undefinedOptional bold heading
dismissiblebooleanfalseShows a × dismiss button

Outputs

OutputPayloadDescription
dismissedvoidEmitted when the × button is clicked