ObjectStackObjectStack

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_left
  • top_center
  • top_right
  • bottom_left
  • bottom_center
  • bottom_right

NotificationSeverity

Notification severity level

Allowed Values

  • info
  • success
  • warning
  • error

NotificationType

Notification presentation style

Allowed Values

  • toast
  • snackbar
  • banner
  • alert
  • inline

On this page