Alerts
8 appearances × semantic colors, dismissible 対応
最小 (bordered-left default)
Notice
Saved
Careful
Error
<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>
dismissible — 閉じるボタン付き
Error
<x-alert color="error" title="Error" dismissible>Connection failed. Please try again.</x-alert>
appearance=soft (text-base-content / mute)
Info alert
Success alert
Warning alert
Error alert
<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>
appearance=vivid (saturated color-mix)
Info alert
Success alert
Warning alert
Error alert
<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>
appearance=solid
Info alert
Success alert
Warning alert
Error alert
<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>
appearance=outline
Info alert
Success alert
Warning alert
Error alert
<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>
appearance=base-100 / base-200 / base-300
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>
appearance=bordered-top
Bordered-top Info
Bordered-top Success
<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>
appearance=ghost / link
Ghost Info
Link Primary
<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>