Toast | CombricSkip to content

Toast

Combric

Compositional portaled notification with optional timeout.

@combric/react · v1.1.1 · Current

Import and usage

import { ToastViewport, Toast, ToastTitle, ToastDescription, ToastClose } from "@combric/react";

Load the native stylesheet with @import "@combric/react/css";. This path does not require Tailwind.

Examples

Saved notification

Assertive priority on demand

Public API

Public exports
Name
ToastViewport
Toast
ToastTitle
ToastDescription
ToastClose
Documented contracts
Property / capabilityPublished contract
Contractopen/defaultOpen
Contractduration (0 disables)
prioritypolite | assertive

Accessibility

Uses status or alert semantics by priority, provides an accessible close action, and never moves focus.

Keyboard

Close is a native button; notification itself does not capture focus.

CSS and customization

Combric classes and canonical --combric-* variables provide the package presentation. Consumer className extends the required class; it does not replace the component contract.

Source

View source on GitHub