BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/revola/edit-profile

Edit Profile Dialog

revola/edit-profile
FreeComponent

A responsive profile editing dialog with file upload and form inputs - drawer on mobile, modal on desktop.

Install it

npx shadcn@latest add https://revola.sameerjs.com/r/edit-profile.json

Source

registry/revola/examples/origin-ui/forms/user-profile/edit-profile.tsxrevola.sameerjs.com/r/edit-profile.json · first 6 KB
1"use client";
2
3import { useId } from "react";
4import Image from "next/image";
5
6import { CheckIcon, ImagePlusIcon, XIcon } from "lucide-react";
7
8import { Button } from "@/components/ui/button";
9import { Input } from "@/components/ui/input";
10import { Label } from "@/components/ui/label";
11import {
12 ResponsiveDialog,
13 ResponsiveDialogClose,
14 ResponsiveDialogContent,
15 ResponsiveDialogDescription,
16 ResponsiveDialogFooter,
17 ResponsiveDialogHeader,
18 ResponsiveDialogTitle,
19 ResponsiveDialogTrigger,
20} from "@/components/ui/revola";
21import { Textarea } from "@/components/ui/textarea";
22
23import { useCharacterLimit } from "@/hooks/use-character-limit";
24import { useFileUpload } from "@/hooks/use-file-upload";
25
26// Pretend we have initial image files
27const initialBgImage = [
28 {
29 name: "extended-gradient-bg.png",
30 size: 1528737,
31 type: "image/png",
32 url: "/extended-gradient.png",
33 id: "profile-bg-123456789",
34 },
35];
36
37const initialAvatarImage = [
38 {
39 name: "original-avatar.jpg",
40 size: 1528737,
41 type: "image/jpeg",
42 url: "/original-avatar.jpg",
43 id: "avatar-123456789",
44 },
45];
46
47export default function EditProfileDialog() {
48 const id = useId();
49
50 const maxLength = 180;
51 const {
52 value,
53 characterCount,
54 handleChange,
55 maxLength: limit,
56 } = useCharacterLimit({
57 maxLength,
58 initialValue: "Hey, I am Charlet, a Product Manager who loves building amazing products that delight users!",
59 });
60
61 return (
62 <ResponsiveDialog>
63 <ResponsiveDialogTrigger asChild>
64 <Button variant="outline" className="h-12 rounded-full px-6 capitalize">
65 Edit profile
66 </Button>
67 </ResponsiveDialogTrigger>
68 <ResponsiveDialogContent className="flex flex-col gap-0">
69 <ResponsiveDialogHeader className="space-y-0 !p-0 text-left">
70 <ResponsiveDialogTitle className="border-b px-6 py-4 text-base max-sm:pt-2">
71 Edit profile
72 </ResponsiveDialogTitle>
73 </ResponsiveDialogHeader>
74 <ResponsiveDialogDescription className="sr-only">
75 Make changes to your profile here. You can change your photo and set a username.
76 </ResponsiveDialogDescription>
77
78 <div className="overflow-y-auto">
79 <ProfileBg />
80 <Avatar />
81 <div className="px-6 pb-6 pt-4">
82 <form className="space-y-4">
83 <div className="flex flex-col gap-4 sm:flex-row">
84 <div className="flex-1 space-y-2">
85// … truncated

What it pulls in

npm packages

  • lucide-react

Other registry items

  • button
  • input
  • label
  • textarea
  • https://revola.sameerjs.com/r/revola.json

Files it writes

  • registry/revola/examples/origin-ui/forms/user-profile/edit-profile.tsx
  • hooks/use-character-limit.ts
  • hooks/use-file-upload.ts

Facts

Registry
revola
Type
registry:ui
Access
Free
Files written
3
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
yesterday

Go to the source

revola.sameerjs.com SameerJS6/revola on GitHub Raw registry item This item as JSON

More from revola

All 24 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Alert Dialogalert-dialogrevolaComponentsFreeno deps
Alert Dialog with Iconalert-dialog-with-iconrevolaComponentsFree1 dep
Change Plan Dialogchange-planrevolaComponentsFree1 dep
Checkout DialogcheckoutrevolaComponentsFree2 deps
Credit Card Dialogcredit-cardrevolaComponentsFree2 deps
Custom Scrollbar Dialogcustom-scrollbarrevolaComponentsFreeno deps
Delete Project Dialogdelete-projectrevolaComponentsFree1 dep
Feedback DialogfeedbackrevolaComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex