DocsInstallation
Installation
Get started with Nudge UI in seconds - npm, yarn, pnpm, or CDN.
Package Manager
Install Nudge UI using your preferred package manager:
npm
npm install nudge-uiyarn
yarn add nudge-uipnpm
pnpm add nudge-uibun
bun add nudge-uiCDN (no build step)
Use the ESM build directly from a CDN for quick prototyping:
<!-- Latest version -->
<script type="module">
import { toast } from "https://cdn.jsdelivr.net/npm/nudge-ui/dist/index.esm.js";
toast.success("Hello from CDN!");
</script>Peer Dependencies
If you are using the React bindings, ensure React is installed:
npm install react react-domTypeScript
Nudge UI is written in TypeScript - types are bundled automatically. No additional @types/ packages are required.
CSS
Import the default CSS stylesheet once at the root of your app:
// In your layout or _app file
import "nudge-ui/dist/toaster.css";Or copy the styles from toaster.css and customize them to match your brand. All class names follow the BEM .toast__* convention so they are easy to override.