Notification
Notification protocol schemas
Notification Type Schema Defines the visual presentation style of the notification.
Source: packages/spec/src/ui/notification.zod.ts
TypeScript Usage
import { NotificationPositionSchema, NotificationSeveritySchema, NotificationTypeSchema } from '@objectstack/spec/ui';
import type { NotificationPosition, NotificationSeverity, NotificationType } from '@objectstack/spec/ui';
// Validate data
const result = NotificationPositionSchema.parse(data);NotificationPosition
Screen position for notification placement
Allowed Values
top_lefttop_centertop_rightbottom_leftbottom_centerbottom_right
NotificationSeverity
Notification severity level
Allowed Values
infosuccesswarningerror
NotificationType
Notification presentation style
Allowed Values
toastsnackbarbanneralertinline