# Avatar Uploader

> An interactive avatar uploader with image cropping and preview that supports custom aspect ratios, size limits, and file validation. Perfect for profile pictures, user onboarding flows, and account settings pages.

- Author: [Efferd](https://21st.dev/@sshahaider)
- Library: [Efferd](https://21st.dev/@sshahaider/library/efferd)
- License: unknown
- npm dependencies: react-easy-crop
- Live preview: https://21st.dev/@sshahaider/components/avatar-uploader

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/sshahaider/avatar-uploader?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
