Hiyve Components - v1.0.0
    Preparing search index...

    Interface CreateWhiteboardDialogProps

    Create whiteboard dialog props

    interface CreateWhiteboardDialogProps {
        defaultName?: string;
        error?: string | null;
        isCreating?: boolean;
        labels?: Partial<CreateWhiteboardDialogLabels>;
        onClose: () => void;
        onCreate: (
            fileId: string,
            fileName: string,
            fileData: WhiteboardFile,
        ) => void;
        open: boolean;
    }
    Index

    Properties

    defaultName?: string

    Default name for the whiteboard

    error?: string | null

    Error message to display

    isCreating?: boolean

    Whether create is in progress

    onClose: () => void

    Called when dialog closes

    onCreate: (fileId: string, fileName: string, fileData: WhiteboardFile) => void

    Called when whiteboard is created successfully.

    Type Declaration

      • (fileId: string, fileName: string, fileData: WhiteboardFile): void
      • Parameters

        • fileId: string

          The created file ID

        • fileName: string

          The whiteboard name

        • fileData: WhiteboardFile

          The initial whiteboard file data (can be passed to Whiteboard's initialFileData prop)

        Returns void

    open: boolean

    Whether the dialog is open