Feedback Dialog
revola/feedbackFreeComponent
A responsive feedback form dialog with textarea input - drawer on mobile, modal on desktop.
Install it
npx shadcn@latest add https://revola.sameerjs.com/r/feedback.jsonSource
1"use client";23import { Button } from "@/components/ui/button";4import {5 ResponsiveDialog,6 ResponsiveDialogContent,7 ResponsiveDialogDescription,8 ResponsiveDialogHeader,9 ResponsiveDialogTitle,10 ResponsiveDialogTrigger,11} from "@/components/ui/revola";12import { Textarea } from "@/components/ui/textarea";1314export default function FeedbackDialog() {15 return (16 <ResponsiveDialog>17 <ResponsiveDialogTrigger asChild>18 <Button variant="outline" className="h-12 rounded-full px-6 capitalize">19 Send Feedback20 </Button>21 </ResponsiveDialogTrigger>22 <ResponsiveDialogContent className="sm:max-w-sm">23 <div className="space-y-4 overflow-y-auto p-6 pt-2 sm:p-6">24 <ResponsiveDialogHeader>25 <ResponsiveDialogTitle>Send us feedback</ResponsiveDialogTitle>26 <ResponsiveDialogDescription className="text-balance">27 Watch{" "}28 <a className="text-foreground underline-offset-2 hover:underline" href="#">29 tutorials30 </a>31 , read Revola‘s{" "}32 <a className="text-foreground underline-offset-2 hover:underline" href="#">33 documentation34 </a>35 , or join our{" "}36 <a className="text-foreground underline-offset-2 hover:underline" href="#">37 Discord38 </a>{" "}39 for community help.40 </ResponsiveDialogDescription>41 </ResponsiveDialogHeader>42 <form className="space-y-5" onSubmit={(e) => e.preventDefault()}>43 <Textarea44 rows={3}45 id="feedback"46 className="resize-none"47 placeholder="How can we improve Revola?"48 aria-label="Send feedback"49 />50 <div className="flex flex-col sm:flex-row sm:justify-end">51 <Button type="button">Send feedback</Button>52 </div>53 </form>54 </div>55 </ResponsiveDialogContent>56 </ResponsiveDialog>57 );58}
What it pulls in
Other registry items
Files it writes
More from revola
All 24 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Alert Dialogalert-dialog | revola | Components | Free | no deps | |
| Alert Dialog with Iconalert-dialog-with-icon | revola | Components | Free | 1 dep | |
| Change Plan Dialogchange-plan | revola | Components | Free | 1 dep | |
| Checkout Dialogcheckout | revola | Components | Free | 2 deps | |
| Credit Card Dialogcredit-card | revola | Components | Free | 2 deps | |
| Custom Scrollbar Dialogcustom-scrollbar | revola | Components | Free | no deps | |
| Delete Project Dialogdelete-project | revola | Components | Free | 1 dep | |
| Edit Profile Dialogedit-profile | revola | Components | Free | 1 dep · 3 files |
