Alert

重要な情報を伝えるコールアウト。タイトル、説明、アクション、5 つのトーンを持ちます。

対応フレームワーク
  • Angular: 対応
  • Vue: 対応
  • React: 対応
  • React Native: 対応

使い方

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.

インポート

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

API リファレンス

SoneAlertActionDirectiveディレクティブ

セレクター
[soneAlertAction]

SoneAlertDescriptionDirectiveディレクティブ

セレクター
[soneAlertDescription]

SoneAlertDirectiveコンポーネント

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.

セレクター
[soneAlert]
入力
名前型 デフォルト
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
出力
名前型
dismissed

The close button was pressed.

void

SoneAlertTitleDirectiveディレクティブ

セレクター
[soneAlertTitle]