Skip to content
LoidoltTheme 0.11.1
Svelte 5

Component

Alert

A persistent message about the state of the page.

import { Alert } from '@loidolt/theme-svelte';

Example

Import complete

Nothing needs your attention.

Preview ready

All geometry checks passed.

Material warning

Two layers exceed the sheet width.

Props

Generated from the component source, so it cannot drift from the implementation.

Alert props
PropTypeDefaultNotes
children Snippet—
class string—
headingLevel HeadingLevel3Heading element used for the title, so the alert fits the page outline.
ref bindableHTMLDivElement | nullnull
title string | Snippet—Optional heading. Accepts a snippet for rich content; omit it for a body-only alert.
variant StatusVariant'info'

Plus the attributes of Omit<HTMLAttributes<HTMLDivElement>, 'title'>, forwarded to the root element.