FileList
The Filenest.FileList is used to retrieve and display your files.
The component must be used as a child of
<Filenest.Root>Example Usage
Render Props
| Prop | Type | Default |
|---|---|---|
files | Array<FileObject> | - |
isLoading | boolean | - |
Type References
FileObject
| Prop | Type | Default |
|---|---|---|
Root | (props: FileProps) => JSX.Element | - |
Delete | (props: DeleteActionProps) => JSX.Element | - |
FileProps
| Prop | Type | Default |
|---|---|---|
children | React.ReactNode | ((props: RenderProps) => React.ReactNode) | - |
RenderProps
| Prop | Type | Default |
|---|---|---|
file | FilenestFile | - |
rootProps | React.ComponentPropsWithoutRef<'div'> | - |
state | { isLoading: boolean, isSelected: boolean } | - |
DeleteActionProps
| Prop | Type | Default |
|---|---|---|
children | React.ReactNode | ((props: RenderProps) => React.ReactNode) | - |
RenderProps
| Prop | Type | Default |
|---|---|---|
trigger | () => void | - |
isDeleting | boolean | - |
FilenestFile
| Prop | Type | Default |
|---|---|---|
id | string | - |
key | string | - |
name | string | undefined | - |
size | number | - |
extension | string | - |
updatedAt | string | - |
url | string | - |