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

    Interface FileReferencesPanelProps

    Props for the FileReferencesPanel component.

    Displays a list of files attached to the assignment with options to add, remove, and navigate to referenced files.

    interface FileReferencesPanelProps {
        colors: AssignmentEditorColors;
        fileReferences: FileReference[];
        onAddFiles?: () => void;
        onFileClick?: (fileId: string) => void;
        onRemove?: (fileId: string) => void;
        readOnly?: boolean;
        sx?: SxProps<Theme>;
    }
    Index

    Properties

    Custom colors

    fileReferences: FileReference[]

    List of attached file references

    onAddFiles?: () => void

    Callback to open the file picker

    onFileClick?: (fileId: string) => void

    Callback when a file reference is clicked

    onRemove?: (fileId: string) => void

    Callback when a file reference is removed

    readOnly?: boolean

    Whether the panel is read-only

    sx?: SxProps<Theme>

    MUI sx styling prop