Alerts

8 appearances × semantic colors, dismissible 対応

最小 (bordered-left default)

<x-alert color="info" title="Notice">A new version is available.</x-alert>
<x-alert color="success" title="Saved">Your data was saved successfully.</x-alert>
<x-alert color="warning" title="Careful">Storage usage is above 80%.</x-alert>
<x-alert color="error" title="Error">Connection failed. Please try again.</x-alert>
読み込み中…
HTML を読み込めませんでした

dismissible — 閉じるボタン付き

<x-alert color="error" title="Error" dismissible>Connection failed. Please try again.</x-alert>
読み込み中…
HTML を読み込めませんでした

appearance=soft (text-base-content / mute)

<x-alert color="info" appearance="soft" title="Info alert">Soft appearance keeps body text at base-content.</x-alert>
<x-alert color="success" appearance="soft" title="Success alert">Success notification with soft appearance.</x-alert>
<x-alert color="warning" appearance="soft" title="Warning alert">Warning notification with soft appearance.</x-alert>
<x-alert color="error" appearance="soft" title="Error alert">Error notification with soft appearance.</x-alert>
読み込み中…
HTML を読み込めませんでした

appearance=vivid (saturated color-mix)

<x-alert color="info" appearance="vivid" title="Info alert">Vivid uses a saturated color-mix background.</x-alert>
<x-alert color="success" appearance="vivid" title="Success alert">Success notification, vivid appearance.</x-alert>
<x-alert color="warning" appearance="vivid" title="Warning alert">Warning notification, vivid appearance.</x-alert>
<x-alert color="error" appearance="vivid" title="Error alert">Error notification, vivid appearance.</x-alert>
読み込み中…
HTML を読み込めませんでした

appearance=solid

<x-alert color="info" appearance="solid" title="Info alert">Solid fills with the semantic color.</x-alert>
<x-alert color="success" appearance="solid" title="Success alert">Success notification, solid appearance.</x-alert>
<x-alert color="warning" appearance="solid" title="Warning alert">Warning notification, solid appearance.</x-alert>
<x-alert color="error" appearance="solid" title="Error alert">Error notification, solid appearance.</x-alert>
読み込み中…
HTML を読み込めませんでした

appearance=outline

<x-alert color="info" appearance="outline" title="Info alert">Outline draws the border only.</x-alert>
<x-alert color="success" appearance="outline" title="Success alert">Success notification, outline appearance.</x-alert>
<x-alert color="warning" appearance="outline" title="Warning alert">Warning notification, outline appearance.</x-alert>
<x-alert color="error" appearance="outline" title="Error alert">Error notification, outline appearance.</x-alert>
読み込み中…
HTML を読み込めませんでした

appearance=base-100 / base-200 / base-300

<x-alert color="info" appearance="base-100" title="base-100">Surface-tinted alert on the page canvas.</x-alert>
<x-alert color="info" appearance="base-200" title="base-200">Blends into a base-200 panel.</x-alert>
<x-alert color="info" appearance="base-300" title="base-300">Blends into a base-300 panel.</x-alert>
読み込み中…
HTML を読み込めませんでした

appearance=bordered-top

<x-alert color="info" appearance="bordered-top" title="Bordered-top Info">Top accent bar.</x-alert>
<x-alert color="success" appearance="bordered-top" title="Bordered-top Success">Preline-style top accent.</x-alert>
読み込み中…
HTML を読み込めませんでした

appearance=ghost / link

<x-alert color="info" appearance="ghost" title="Ghost Info">No background or border, text-only minimal display.</x-alert>
<x-alert color="primary" appearance="link" title="Link Primary">Underlined link-style alert.</x-alert>
読み込み中…
HTML を読み込めませんでした