@corndev/ui-notifications
v1.0.0-beta.4
Published
Corn UI — Toast and Alert notification components
Maintainers
Readme
@corndev/ui-notifications
Notification components: Alert (inline) and Toast (stacked pop-ups).
Install
npm install @corndev/ui-notificationsUse
import { createToastManager, createAlert } from '@corndev/ui-notifications';
import '@corndev/ui-notifications/styles';Styles
The stylesheet ships with the package and is imported separately, so a page can use the classes with no JavaScript:
import '@corndev/ui-notifications/styles';Components
- Alert — Inline status message with optional dismiss button.
- Toast — Stacked toast notifications. Call .show() to display; returns an id for manual dismissal.
Documentation
- Component documentation
- Installing
- Theming
- llms.txt — the whole API in one file, for coding agents
Licence
MIT © Corndog Development LLC. See LICENSE.
