ChoisSTANDARD UI컴포넌트 검색 /

Feedback

Toast

semantic HTML

비차단 알림을 순서대로 표시합니다.

stablefreeSince 0.2

Live example

Notifications appear here after an action.
<button type="button" data-example-action="show-toast">Show toast</button><section data-standard-component="toast-stack" class="standard-toast-stack" aria-live="polite"><article role="status">Notifications appear here after an action.</article></section>

Variants and sizes

The pattern inherits theme and density tokens. Use compact, comfortable, or roomy density when the surrounding screen requires it.

compactcomfortableroomy

Public API

ContractValue
Implementationsemantic HTML
Statusstable
Licensefree
Since0.2
HTML contractNative HTML elements and attributes
EventsNative browser events

Accessibility

polite live region을 사용하되 danger 알림만 alert로 안내하고 제거된 stack의 타이머를 정리합니다.

Server template guidance

<!-- Render the semantic HTML on the server. Load enhancement JavaScript only when this interaction is needed. -->