Hiyve Components - v1.0.0
    Preparing search index...
    • FileIcon displays an icon representing a file's resource type.

      Parameters

      Returns Element

      The icon and color are determined by the resource type. Both can be customized via props for different themes or branding requirements. When showBackground is true, the icon is displayed inside a tinted rounded box using the icon's color at reduced opacity.

      // Basic usage
      <FileIcon resourceType="pdf" />

      // With background box
      <FileIcon resourceType="whiteboard" showBackground backgroundSize={48} />

      // With custom size
      <FileIcon resourceType="image" size={32} />

      // With custom colors
      <FileIcon
      resourceType="video"
      colors={{ video: 'secondary.main' }}
      />