HQReact UI
DocsThemes
  • Getting Started
  • Introduction
  • Installation
  • Client Side Routing
  • MCP Server
  • LLMs
  • Framework Guides
  • Nextjs
  • Laravel
  • Vite
  • Tanstack Start
  • Components
  • Buttons
  • Button
  • File Trigger
  • Toggle
  • Charts
  • Chart
  • Collections
  • Accordion
  • Bubble
  • Collapsible
  • Context Menu
  • Dropdown Menu
  • Grid List
  • Item
  • List Box
  • Message
  • Table
  • Tag Group
  • Tree
  • Colors
  • Color
  • Controls
  • Command
  • Kbd
  • Slider
  • Switch
  • Toolbar
  • Date And Time
  • Calendar
  • Range Calendar
  • Date Field
  • Date Picker
  • Date Range Picker
  • Time Field
  • Drag And Drop
  • Drop Zone
  • Forms
  • Field
  • Input
  • Combobox
  • Input Group
  • Checkbox
  • Radio
  • Select
  • Text Field
  • Number Field
  • Search Field
  • Input OTP
  • Layouts
  • Container
  • Navbar
  • Sidebar
  • Media
  • Avatar
  • Carousel
  • Navigation
  • Link
  • Breadcrumbs
  • Tabs
  • Pagination
  • Overlays
  • Dialog
  • Alert Dialog
  • Sheet
  • Popover
  • Tooltip
  • Statuses
  • Alert
  • Badge
  • Empty
  • Meter
  • Progress
  • Skeleton
  • Toastalpha
  • Surfaces
  • Card
  • Separator

On this page

File Trigger

FileTrigger
file-trigger-basic

Installation

CLI
Manual

npx shadcn add https://hq-ui.vercel.app/r/file-trigger

Examples

Folder

A FileTrigger that allows users to select a folder from the file system.

file-trigger-folder

Multiple

A FileTrigger that enables users to select multiple files.

file-trigger-multiple

Camera

A FileTrigger that lets users capture images using their device's camera.

file-trigger-camera

Avatar

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.

file-trigger-avatar

Pending

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.

file-trigger-pending

Controlled

You can use the onSelect prop to snag the selected files.

file-trigger-controlled

Disabled

A FileTrigger that is disabled.

file-trigger-disabled
Button
Toggle

On this page

  • Installation
  • Examples
  • Folder
  • Multiple
  • Camera
  • Avatar
  • Pending
  • Controlled
  • Disabled