# KptAlert (kpt-alert) An inline message. Variants info/success/warning/danger, a title, dismissal. Import: `import { KptAlert } from '@konce-pt/angular';` ## Selector `kpt-alert` ## Inputs / outputs - `variant`: 'info'|'success'|'warning'|'danger' (default 'info') - `title`: string; `dismissible`: boolean (a x button) - `visible`: model (default true) - shown or closed, two-way; x sets `false` - `closed`: output ## Example Your changes have been saved. Something went wrong. ## Tokens The accent comes from `--kpt-color-{info,success,warning,danger}`; the background is a color-mix over `--kpt-color-surface`. ## Accessibility The role follows the weight of the message: `info` and `success` are `role="status"` (read politely, without interrupting), `warning` and `danger` are `role="alert"` (read at once). The icon is decorative; the x button is labelled from `common.close`. After closing, focus falls back to the page - move it yourself in the close handler when the alert was reached with the keyboard. A live region announces **changes**: an alert rendered together with the page (or revealed by toggling `hidden`) is not announced reliably. To have it read, add it after the action (`@if` / conditional render) - the inserted element is announced.