Avatar Picker
kokonut-ui/avatar-pickerFreeComponent
Avatar picker with rotation animation.
Live preview
live · rendered by the registry
Rendered by kokonut-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://kokonutui.com/r/avatar-picker.jsonSource
1"use client";23/**4 * @author: @dorianbaffier5 * @description: Avatar Picker6 * @version: 2.0.07 * @date: 2026-02-228 * @license: MIT9 * @website: https://kokonutui.com10 * @github: https://github.com/kokonut-labs/kokonutui11 */1213import { Check, ChevronRight, User2 } from "lucide-react";14import type { Variants } from "motion/react";15import { AnimatePresence, motion, useReducedMotion } from "motion/react";16import type { ReactNode } from "react";17import { useState } from "react";18import { Button } from "@/components/ui/button";19import { Card, CardContent } from "@/components/ui/card";20import { Input } from "@/components/ui/input";21import { cn } from "@/lib/utils";2223interface Avatar {24 id: number;25 svg: ReactNode;26 alt: string;27}2829// RGB values for the per-avatar color ring on the stage30const AVATAR_RGB: Record<number, string> = {31 1: "255, 0, 91",32 2: "255, 125, 16",33 3: "255, 0, 91",34 4: "137, 252, 179",35};3637const avatars: Avatar[] = [38 {39 id: 1,40 svg: (41 <svg42 aria-label="Avatar 1"43 fill="none"44 height="40"45 role="img"46 viewBox="0 0 36 36"47 width="40"48 xmlns="http://www.w3.org/2000/svg"49 >50 <title>Avatar 1</title>51 <mask52 height="36"53 id=":r111:"54 maskUnits="userSpaceOnUse"55 width="36"56 x="0"57 y="0"58 >59 <rect fill="#FFFFFF" height="36" rx="72" width="36" />60 </mask>61 <g mask="url(#:r111:)">62 <rect fill="#ff005b" height="36" width="36" />63 <rect64 fill="#ffb238"65 height="36"66 rx="6"67 transform="translate(9 -5) rotate(219 18 18) scale(1)"68 width="36"69 x="0"70 y="0"71 />72 <g transform="translate(4.5 -4) rotate(9 18 18)">73 <path74 d="M15 19c2 1 4 1 6 0"75 fill="none"76 stroke="#000000"77 strokeLinecap="round"78 />79 <rect80 fill="#000000"81 height="2"82 rx="1"83 stroke="none"84 width="1.5"85 x="10"86 y="14"87 />88 <rect89 fill="#000000"90 height="2"91 rx="1"92 stroke="none"93 width="1.5"94 x="24"95 y="14"96 />97 </g>98 </g>99 </svg>100 ),101 alt: "Avatar 1",102 },103 {104 id: 2,105 svg: (106// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from kokonut-ui
All 40 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Action Search Baraction-search-bar | kokonut-ui | Components | Free | 2 deps · 2 files | |
| AI Input Searchai-input-search | kokonut-ui | Components | Free | 1 dep · 2 files | |
| AI State Loadingai-loading | kokonut-ui | Components | Free | 1 dep | |
| AI Input Selectorai-prompt | kokonut-ui | Components | Free | 2 deps · 4 files | |
| AI Text Loadingai-text-loading | kokonut-ui | Components | Free | 1 dep | |
| AI Voiceai-voice | kokonut-ui | Components | Free | 2 deps | |
| Apple Activity Cardapple-activity-card | kokonut-ui | Components | Free | 1 dep | |
| Magnet Buttonattract-button | kokonut-ui | Components | Free | 2 deps |
