Intent UI

File Trigger 13

Buttons 3

About

Here is File Trigger component

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds File Trigger 13 to your project and fits it to your theme.

Code

How File Trigger 13 is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client"

import { useState } from "react"
import { FileTrigger } from "@/components/ui/file-trigger-13"

export default function Component() {
  const [isLoading, setLoading] = useState(false)

  const handleSelect = async (files: FileList | null) => {
    if (!files || files.length === 0) return

    setLoading(true)
    await new Promise((r) => setTimeout(r, 4500))
    setLoading(false)
  }

  return (
    <FileTrigger onSelect={handleSelect} isPending={isLoading}>
      {isLoading ? "Uploading..." : "Upload a file"}
    </FileTrigger>
  )
}

Dependencies

More by Intent UI

View all
  • Radar Chart

    Radar Chart

    244
  • Radial Chart

    Radial Chart

    92
  • Bar Chart

    Bar Chart

    51
  • Pie Chart

    Pie Chart

    40
  • Toggle Group

    Toggle Group

    32
  • Loader

    Loader

    28
  • Progress Bar

    Progress Bar

    25
  • Color Slider

    Color Slider

    16

More in Buttons

View all
  • Button

    Button

    166
  • Texture Button

    Texture Button

    121
  • Button

    Button

    21
  • Figma File Button

    Figma File Button

    39
  • Native Button

    Native Button

    12
  • Button

    Button

    88
  • HeroUI Button Group

    HeroUI Button Group

    11
  • Great UI Button

    Great UI Button

    19