Alert

Un aviso para información importante, con título, descripción, acción y cinco tonos.

Disponible en
  • Angular: disponible
  • Vue: disponible
  • React: disponible
  • React Native: disponible

Uso

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.

Importación

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

Referencia de la API

SoneAlertActionDirectiveDirectiva

Selector
[soneAlertAction]

SoneAlertDescriptionDirectiveDirectiva

Selector
[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.

Selector
[soneAlert]
Inputs
NombreTipo Predeterminado
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
Outputs
NombreTipo
dismissed

The close button was pressed.

void

SoneAlertTitleDirectiveDirectiva

Selector
[soneAlertTitle]