feedback

Alert

ステータスメッセージを表示するインラインバナー。エラーや警告には role="alert"、情報や成功を表すには role="status" を使用。

インポート

import { Alert, AlertTitle, AlertDescription } from '@stella-ds/react'
AlertAlertTitleAlertDescription

Props

Propデフォルト説明
variant'info' | 'success' | 'warning' | 'error''info'Visual style and semantic meaning
onClose() => voidundefinedRenders an × button when provided

Preview

Info

This is an informational message.

Success

Your changes have been saved.

使用例

Basic

<Alert variant="success" onClose={() => {}}>
  <AlertTitle>Success</AlertTitle>
  <AlertDescription>Your changes have been saved.</AlertDescription>
</Alert>
コンポーネント一覧
Avatar