@brighthr/component-fileicon
v1.1.7
Published
To install, type the following into the command line at the root of your project:
Downloads
618
Readme
FileIcon
To install, type the following into the command line at the root of your project:
npm i @brighthr/component-fileicon
To implement the FileIcon component into your project you’ll need to add the import:
import FileIcon from '@brighthr/component-fileicon';
After adding import into your project you can use it simply like:
<FileIcon />
Props
| Name | Type | Default | Description |
|----------|--------------------------------------------------------|---------|------------------------------------------------------------------------------|
| fileName | string
| | Uses the file name to set an icon to match the file type, (eg: .pdf, .csv) |
| size | 'xxs'
'xs'
'sm'
'base'
'lg'
'xl'
'xxl'
| | Sets the size of the icon. |