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

    Props for the FileIcon component.

    <FileIcon resourceType="pdf" />
    <FileIcon resourceType="image" size={24} />
    <FileIcon resourceType="video" colors={{ video: 'primary.main' }} />
    interface FileIconProps {
        backgroundBorderRadius?: number;
        backgroundSize?: number;
        colors?: Partial<FileIconColorMap>;
        icons?: Partial<FileIconMap>;
        resourceType: ResourceType;
        showBackground?: boolean;
        size?: number;
        sx?: SxProps<Theme>;
    }
    Index

    Properties

    backgroundBorderRadius?: number

    Border radius of the background box in pixels

    12
    
    backgroundSize?: number

    Size of the background box in pixels (only used when showBackground is true)

    48
    
    colors?: Partial<FileIconColorMap>

    Custom color mapping

    icons?: Partial<FileIconMap>

    Custom icon mapping

    resourceType: ResourceType

    Resource type to display icon for

    showBackground?: boolean

    Show a tinted background box behind the icon

    false
    
    size?: number

    Icon size in pixels

    24
    
    sx?: SxProps<Theme>

    MUI sx styling prop