2.4.5 • Published 1 year ago

solid-hot-toast v2.4.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

solid-hot-toast

Solid Toast Component

Install

solid-hot-toast

Usage

Include the default styling and then:

import { render } from "solid-js/web";
import { toast, create, Toast, Toaster } from "solid-hot-toast";

const toastValue = create({
    limit: 3
})

render(
  () => (
    <>
      <ToastProvider {...toastValue}>
        <Toaster position={() => "top-center"}/>
      </Trigger>
      <Toaster position={() => "top-right"}/>
      <div onClick={() => toastValue.toast("open")}>click</div>
      <div onClick={() => toast("open")}>click1</div>
    </div>
  ),
  document.getElementById("app")
);

Documentation

Find the full API reference on official documentation.

solid-hot-toast is released under the MIT license.

2.4.5

1 year ago

2.4.4-beta

1 year ago

2.4.3

1 year ago

2.4.2

1 year ago

2.4.4

1 year ago

2.4.1

1 year ago

2.4.1-beta.1

1 year ago

2.4.1-beta

1 year ago