# File Upload Button

> A sleek file upload button for React, built with shadcn/ui. Supports click and drag-and-drop, with file type/size validation, image previews, and file management. Customizable via onFileSelect, maxSize, allowedTypes, className, and disabled props.

- Author: [Bankk](https://21st.dev/@bankkroll)
- Library: [Bankk](https://21st.dev/@bankkroll/library/bankk)
- License: unknown
- npm dependencies: lucide-react
- Live preview: https://21st.dev/@bankkroll/components/file-upload-button

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/bankkroll/file-upload-button?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt
