DocMosaicdocs
Primitives

Editor.Toaster

react-hot-toast container styled with semantic tokens.

react-hot-toast container styled with semantic tokens.

Usage

import { Editor } from '@docmosaic/react';

<Editor.Root>
    <Editor.Toaster />
</Editor.Root>;

API Reference

PropTypeDefaultDescription
toastOptionsDefaultToastOptions | undefined-

Override the default toast styling. Defaults to a theme-token-styled card matching bg-card / text-card-foreground. Anything you pass deep-merges into the bundled defaults, so consumers only need to set the fields they want to change.

  • Root - the orchestrator