Empty

ビューが空である理由を説明し、次のステップを提示します。

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

使い方

No meetings yet

Record a meeting and it is transcribed right here, on this device.

This folder is locked

Its notes and transcripts stay encrypted until you unlock it.

Touch ID unlocks it for this session.

インポート

ts
import {
  SoneEmptyContentDirective,
  SoneEmptyDescriptionDirective,
  SoneEmptyDirective,
  SoneEmptyHeaderDirective,
  SoneEmptyMediaDirective,
  SoneEmptyStateComponent,
  SoneEmptyTitleDirective,
} from "@surface-one/angular/empty-state";

API リファレンス

SoneEmptyContentDirectiveディレクティブ

セレクター
[soneEmptyContent]

SoneEmptyDescriptionDirectiveディレクティブ

セレクター
[soneEmptyDescription]

SoneEmptyDirectiveディレクティブ

セレクター
[soneEmpty]

SoneEmptyHeaderDirectiveディレクティブ

セレクター
[soneEmptyHeader]

SoneEmptyMediaDirectiveディレクティブ

セレクター
[soneEmptyMedia]
入力
名前型 デフォルト
variantEmptyMediaVariant"default"

SoneEmptyStateComponentコンポーネント

`<sone-empty-state>` — spartan/ui Empty. Two ways to fill it, which combine: - **Slots** — project the parts (`[soneEmptyHeader]` › `[soneEmptyMedia]`, `[soneEmptyTitle]`, `[soneEmptyDescription]`, then `[soneEmptyContent]`). - **Composed** — set `icon`, `title`, `description` and `tone`, and the header is drawn for you; anything projected (actions in `[soneEmptyContent]`, a hint line) follows it. `tone`: `locked` defaults the icon to `lock`; `error` to `alert-circle` and announces with `role="alert"`; `loading` (or `busy`) swaps the media for a spinner and announces with `role="status"`. The effective tone is on the host as `data-tone`.

セレクター
sone-empty-state
入力
名前型 デフォルト
icon

The media glyph. Defaults to `lock` for `tone="locked"`, `alert-circle` for `"error"`.

ShellIcon | nullnull
titlestring | nullnull
descriptionstring | nullnull
toneEmptyStateTone"default"
busy

Shows the loading state (spinner, `role="status"`) whatever the `tone`.

booleanfalse

SoneEmptyTitleDirectiveディレクティブ

セレクター
[soneEmptyTitle]