# FileEntry

Single file or directory row with icon, name, size, and selection state

## FileEntry[​](#fileentry-1 "Direct link to FileEntry")

Single file or directory row with icon, name, size, and selection state

**Source:** [`packages/appkit-ui/src/react/file-browser/file-entry.tsx`](https://github.com/databricks/appkit/blob/main/packages/appkit-ui/src/react/file-browser/file-entry.tsx)

### Props[​](#props "Direct link to Props")

| Prop         | Type                          | Required | Default | Description                                             |
| ------------ | ----------------------------- | -------- | ------- | ------------------------------------------------------- |
| `entry`      | `DirectoryEntry`              | ✓        | -       | The directory entry to render                           |
| `entryPath`  | `string`                      | ✓        | -       | Resolved full path for this entry                       |
| `isSelected` | `boolean`                     |          | -       | Whether this entry is currently selected                |
| `formatSize` | `((bytes: number) => string)` |          | -       | Custom file size formatter (defaults to formatFileSize) |

### Usage[​](#usage "Direct link to Usage")

```tsx
import { FileEntry } from '@databricks/appkit-ui';

<FileEntry /* props */ />

```
