Intent UI

File Trigger 13

Buttons 2

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

    217
  • Radial Chart

    Radial Chart

    77
  • Bar Chart

    Bar Chart

    44
  • Pie Chart

    Pie Chart

    31
  • Toggle Group

    Toggle Group

    26
  • Loader

    Loader

    23
  • Progress Bar

    Progress Bar

    19
  • Color Slider

    Color Slider

    13

More in Buttons

View all
  • Button Save

    Button Save

    46
  • Button

    Button

    20
  • Eclipse Button

    Eclipse Button

    5
  • Button

    Button

    32
  • Button

    Button

    6
  • Button

    Button

    14
  • Button Group

    Button Group

    37
  • Split Button

    Split Button

    32