npx shadcn add https://hq-ui.vercel.app/r/file-trigger
A FileTrigger that allows users to select a folder from the file system.
A FileTrigger that enables users to select multiple files.
A FileTrigger that lets users capture images using their device's camera.
A FileTrigger that allows users to select an avatar from their file system. It integrates components like avatar and drop-zone, enabling users to either drag and drop or manually select a file.
This how you can use the FileTrigger combined with an Avatar component.
A FileTrigger can indicate a pending state using the isPending prop. This provides feedback for actions that take time, communicates the status to assistive technologies, and disables interactions except for focus.
You can use the onSelect prop to snag the selected files.
A FileTrigger that is disabled.