menu

Anique

Snackbar

texture-box
content-copy
xml
import {createSnackbars, SnackbarHost} from "@qinetik/anique/snackbar"; import {Position} from "@qinetik/anique/utils"; import {onMount} from "solid-js"; export default function SnackbarExample() { const snackbars = createSnackbars() onMount(() => { snackbars.showAlert("Here's the snackbar I promised") }) return ( // Use SolidJS Portal Component to Insert in the Body <SnackbarHost isVisible={() => true} snackbars={snackbars.snackbars()} position={() => Position.BottomRight} /> ) }