Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/nano_jsx/ui/snackbar.ts>Snackbar

🎯 SSR first, lightweight 1kB JSX library.
Go to Latest
class Snackbar
import { Snackbar } from "https://deno.land/x/nano_jsx@v0.0.36/ui/snackbar.ts";

Constructors

new
Snackbar(options?: SnackbarOptions)

Properties

defaultActionColor: string
defaultParentId: string

Methods

private
_show(options: SnackbarOptions | null, callback: (event: { name: string; id: string | number; }) => void)
private
getParentElement(parentId: string)
remove(el: HTMLElement)
show(options: SnackbarOptions | null, callback: (event: { name: string; id: string | number; }) => void)