File Trigger
File Triggers are your go-to for grabbing files from the file system, acting like a digital fishing rod to hook up goodies from local or cloud storage.
Basic
A FileTrigger lets users dive into the file system with any clickable React Aria or React Spectrum part, or custom bits made with usePress.
Preview
Code
Installation
CLI
Manual
npx hq-kit add file-trigger
Folder
A FileTrigger that lets users select a folder from the file system.
Preview
Code
Multiple
A FileTrigger that allows users to select multiple files from the file system.
Preview
Code
Camera
A FileTrigger that lets users capture images using their device's camera.
Preview
Code
Avatar
Preview
Code
Controlled
You can use the onSelect
prop to snag the selected files.
Preview
Code
Disabled
A FileTrigger that is disabled.
Preview
Code