Hiyve Components - v1.0.0
    Preparing search index...
    • WhiteboardSession - Complete whiteboard session management component

      Wraps Whiteboard with session management including:

      • Empty state with file list of saved whiteboards
      • CreateWhiteboardDialog for creating new whiteboards
      • Automatic close handling

      Unlike other Session components, Whiteboard doesn't need a SessionHeader because the Whiteboard component has its own close button when a file is open.

      This is the recommended component for sidebar integration as it handles all session lifecycle management internally.

      Parameters

      Returns Element | null

      // In Sidebar.tsx
      case 'whiteboard':
      return <WhiteboardSession />;

      // With customization
      <WhiteboardSession
      labels={{
      emptyState: { message: 'Draw and collaborate' },
      }}
      whiteboardProps={{
      showZoomControls: true,
      }}
      />