Norse Power Metal

    @emanon/ema-toast

    0.5.0 • Public • Published

    ema-toast

    Overall

    Used to notify a user of small information.

    Properties

    Property Attribute Type Default Description
    icon icon string "" Designates a specific icon
    open open boolean false Toast will be visible when true.
    outlined outlined boolean false Makes the background transparent and applies a thin border.
    placement placement "top" | "bottom" "bottom" Position where to show on the window.
    timeout timeout number 2000 Time (in milliseconds) to wait until toast is automatically closed. Use -1 to keep open indefinitely.

    Events

    Event Type Description
    closed CustomEvent<{}> Fires when Drawer has closed.
    opened CustomEvent<{}> Fires when Drawer has opened.
    request-close CustomEvent<{ accept: () => void; }> Fires when the toast want to be closed.
    Call the function passed to accept.

    CSS Custom Properties

    Property Description
    --ema-c-toast-color Applies specified color to the control.

    Keywords

    none

    Install

    npm i @emanon/ema-toast

    DownloadsWeekly Downloads

    30

    Version

    0.5.0

    License

    MIT

    Unpacked Size

    85.7 kB

    Total Files

    7

    Last publish

    Collaborators

    • npm-cam
    • fkei
    • noritama
    • t4y3
    • ejithon
    • daiki_choko
    • higashiyama
    • kidoyuna
    • so134
    • usui_yuki_cam