Components
Starting preview...
A FileTrigger allows a user to access the file system with any pressable React Aria or React Spectrum component, or custom components built with usePress. FileTrigger extends the functionality of the standard file input element by working with a pressable child such as a Button to create accessible file inputs that can be style as needed.
@jolbol1
npx shadcn@latest add https://21st.dev/r/jolbol1/file-triggerimport { FileTriggerButton } from "@/components/ui/file-trigger";
function FileTriggerButtonDemo() {
return (
<div className="block">
<FileTriggerButton />
</div>
);
}
export { FileTriggerButtonDemo };