Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA dialog with a folder tree where only files can be chosen; double click or Enter on a file confirms. Use this when people must pick one existing file, such as an attachment or an import source.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use it for attachments, import sources, a file to open, or a template to start from. It returns one file and its path.
Do not use it to choose a folder (see move-to-folder-dialog), to choose several files (use checkbox-tree), or for uploading from the computer (use a file input).
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
nodes | TreeNode[] | - | Folders have children; the rest are files. |
onPick | (file, path) => void | - | The chosen file and the folder names down to it. |
accept | (file) => boolean | - | Files that fail are shown disabled. |
children | ReactNode | - | The trigger. |
aria-disabled, still focusable and announced.The pattern ships with a Testing Library test (file-picker-dialog.test.tsx) that covers opening, the disabled Choose button, choosing by button and by Enter, and refused files.