@ajmal_n/flashify-core
v0.1.6
Published
Framework-agnostic notification engine for Flashify. Provides the store, helpers, and CSS for showing toast notifications in any JavaScript app.
Readme
@ajmal_n/flashify-core
Framework-agnostic notification engine for Flashify. Provides the store, helpers, and CSS for showing toast notifications in any JavaScript app.
Install
npm install @ajmal_n/flashify-coreCopy install command
Using pnpm:
pnpm add @ajmal_n/flashify-coreBasic usage
import { flashify } from "@ajmal_n/flashify-core";
flashify.success("Saved successfully!");
flashify.error("Something went wrong");
flashify("Simple message");With options:
flashify.show({
message: "Custom alert",
type: "custom",
durationMs: 6000,
});CSS
Import the built CSS (or copy the variables into your theme):
import "@ajmal_n/flashify-core/dist/styles/base.css";
import "@ajmal_n/flashify-core/dist/styles/variants.css";
import "@ajmal_n/flashify-core/dist/styles/animations.css";License
MIT
