FolderList
The Filenest.FolderList is used to retrieve and display your folders.
Not every provider supports folders. However, using this component won't cause any problems.
The component must be used as a child of
<Filenest.Root>Example Usage
Render Props
| Prop | Type | Default |
|---|---|---|
folders | Array<FolderObject> | - |
isLoading | boolean | - |
Type References
FolderObject
| Prop | Type | Default |
|---|---|---|
Root | (props: FolderProps) => JSX.Element | - |
Delete | (props: DeleteActionProps) => JSX.Element | - |
FolderProps
| Prop | Type | Default |
|---|---|---|
children | React.ReactNode | ((props: RenderProps) => React.ReactNode) | - |
RenderProps
| Prop | Type | Default |
|---|---|---|
folder | FilenestFolder | - |
rootProps | React.ComponentPropsWithoutRef<'div'> | - |
state | { isLoading: boolean } | - |
DeleteActionProps
| Prop | Type | Default |
|---|---|---|
children | React.ReactNode | ((props: RenderProps) => React.ReactNode) | - |
RenderProps
| Prop | Type | Default |
|---|---|---|
trigger | () => void | - |
isDeleting | boolean | - |
FilenestFolder
| Prop | Type | Default |
|---|---|---|
id | string | - |
key | string | - |
displayName | string | undefined | - |