File Trigger
A FileTrigger allows a user to access the file system with any pressable React Aria or React Spectrum component, or custom components built with usePress.
Installation
CLI
Manual
npx hq-kit add file-trigger
Basic
Preview
Code
Folder
Preview
Code
Multiple
Preview
Code
Camera
Preview
Code
Variants
File Trigger uses Button component so you can use all the variants that Button supports
Preview
Code
Avatar
Preview
Code
Controlled
You can use the onSelect
prop to snag the selected files.
Preview
Code
Disabled
Preview
Code