Skip to main content

Snackbar

Usage

مشاهده بیشتر

نمایش پیغام مورد نظر

import Snackbar from "@repo/ui/Snackbar";
import { BadgeCheck } from "lucide-react";

<Snackbar showMoreHref="/something" onClose={() => console.log("onClose")}>
نمایش پیغام مورد نظر
<BadgeCheck />
</Snackbar>;

Installation

npx the-dig@latest add Snackbar

Props

Snackbar is presentational: visibility, timing, and live-region semantics are owned by the consuming notification system. onClose is optional.

PropTypeDefault
showMoreHrefstring-
onCloseVoidFunction-
childrenReactNode-
classNamestring-