Skip to content

FileIcon

Used to display a file icon.

???
// Import component
import { FileIcon } from '@fintech-sandpit/ui/react';
// Import styles (optional)
import '@fintech-sandpit/ui/style/components/file_icon.css';
return (
<FileIcon name="example.pdf" />
);
NameTypeDefaultDescription
fileFile—The file object
namestring—The name of the file
mimestring—The MIME type of the file