Skip to content

File trigger

Opens the file picker from a button or other trigger.

No file selected
file-trigger-basic-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

Multiple images

acceptedFileTypes only filters the picker. Check each file in onSelect.

Project images

PNG or JPEG files.

No images selected
file-trigger-demo.tsx

API reference

vip/ui adds or changes the props below. For all other props, see React Aria FileTrigger (opens in a new tab).

label: string = "Choose files"
Text for the default outline button. To use a different trigger, pass it as children.