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

    223
  • Radial Chart

    Radial Chart

    80
  • Bar Chart

    Bar Chart

    44
  • Pie Chart

    Pie Chart

    31
  • Toggle Group

    Toggle Group

    27
  • Loader

    Loader

    23
  • Progress Bar

    Progress Bar

    19
  • Color Slider

    Color Slider

    14

More in Buttons

View all
  • Button Group

    Button Group

    2
  • App Store Button

    App Store Button

    457
  • Eclipse Button

    Eclipse Button

    6
  • Texture Button

    Texture Button

    95
  • Button

    Button

    5
  • Button Save

    Button Save

    47
  • Base Button

    Base Button

    3
  • Native Button

    Native Button

    2