Alert

Un riquadro per informazioni importanti, con titolo, descrizione, azione e cinque toni.

Disponibile in
  • Angular: disponibile
  • Vue: disponibile
  • React: disponibile
  • React Native: disponibile

Utilizzo

Heads up

Summaries are generated on this device by default.

Export complete

Weekly sync.md was saved to your notes folder.

3 items are in a locked folder

Unlock the folder to restore or delete them.

Ivy noticed a follow-up

“Send the budget draft by Friday” was added to Tasks.

Importazione

ts
import {
  SoneAlertActionDirective,
  SoneAlertDescriptionDirective,
  SoneAlertDirective,
  SoneAlertTitleDirective,
} from "@surface-one/angular/alert";

Riferimento API

SoneAlertActionDirectiveDirettiva

Selettore
[soneAlertAction]

SoneAlertDescriptionDirectiveDirettiva

Selettore
[soneAlertDescription]

SoneAlertDirectiveComponente

An attribute COMPONENT (still `[soneAlert]`, still `SoneAlertDirective`): the close button of a `dismissible` alert has to be rendered on the server too, which a directive cannot do. The children are projected unchanged.

Selettore
[soneAlert]
Input
NomeTipo Predefinito
variantAlertVariant"default"
dismissible

Adds a close button at the end; the owner removes the alert on `(dismissed)`.

booleanfalse
closeLabel

The close button's accessible name.

—$localize`Dismiss`
actionsAlign

Where `[soneAlertAction]` sits against a title + description: `start` (top), `center` or `end` (bottom). `null` keeps the default (top with a title, centred on a one-line alert).

AlertActionsAlign | nullnull
Output
NomeTipo
dismissed

The close button was pressed.

void

SoneAlertTitleDirectiveDirettiva

Selettore
[soneAlertTitle]