Notification schema — UI Protocol reference
Notification schemas of the ObjectStack UI Protocol: NotificationPosition and 2 more — each property with its type, default and a TypeScript example.
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
I18n
Display-label and ARIA-label primitives shared by every ui/ shape. Reference for AriaProps, I18nLabel and 1 more: every property with its type and default.
Sharing
Sharing & Embedding Protocol — Public-link sharing of a form view. Reference for SharingConfig: every property with its type and default.