Skip to content

Alert

概要

Alert は成功・警告・エラーなどのフィードバックをまとまったブロックで表示するコンポーネントです。Alert.Content の中で TitleDescription を組み合わせると、情報密度を保った通知を作れます。

Usage 使用例

基本

API Reference

Alert.Root Props

PropsTypeDefaultDescription
status"info" | "warning" | "success" | "error" | "neutral""info"通知の意味づけです
variant"subtle" | "surface" | "outline" | "solid""subtle"見た目のバリエーションです
size"sm" | "md" | "lg""md"コンポーネントサイズです
classstring追加クラスです

Subcomponents

ComponentDescription
Alert.Indicatorステータスアイコン領域です
Alert.Contentテキスト内容のラッパーです
Alert.Title見出しです
Alert.Description補足文です

Mithril UI Kit Documentation