V0 Button
kokonut-ui/v0-buttonFreeComponent
Open in V0.
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/v0-button.jsonSource
1import { Button } from "@/components/ui/button";2import { cn } from "@/lib/utils";34const prePath = process.env.VERCEL_PROJECT_PRODUCTION_URL5 ? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`6 : `https://${process.env.NEXT_PUBLIC_SITE_URL}`;78export default function V0Button({9 name = "liquid-glass-card",10 className,11}: { name?: string } & React.ComponentProps<typeof Button>) {12 return (13 <Button14 aria-label="Open in v0"15 asChild16 className={cn(17 "not-prose gap-1 rounded-lg bg-black px-3 text-white text-xs shadow-none transition-colors duration-200 hover:bg-zinc-800 dark:bg-white dark:text-black dark:hover:bg-zinc-200",18 className19 )}20 >21 <a22 href={`https://v0.dev/chat/api/open?url=${prePath}/r/${name}.json`}23 rel="noreferrer"24 target="_blank"25 >26 Open in{" "}27 <svg28 className="h-5 w-5 text-current"29 fill="none"30 viewBox="0 0 40 20"31 xmlns="http://www.w3.org/2000/svg"32 >33 <path34 d="M23.3919 0H32.9188C36.7819 0 39.9136 3.13165 39.9136 6.99475V16.0805H36.0006V6.99475C36.0006 6.90167 35.9969 6.80925 35.9898 6.71766L26.4628 16.079C26.4949 16.08 26.5272 16.0805 26.5595 16.0805H36.0006V19.7762H26.5595C22.6964 19.7762 19.4788 16.6139 19.4788 12.7508V3.68923H23.3919V12.7508C23.3919 12.9253 23.4054 13.0977 23.4316 13.2668L33.1682 3.6995C33.0861 3.6927 33.003 3.68923 32.9188 3.68923H23.3919V0Z"35 fill="currentColor"36 />37 <path38 d="M13.7688 19.0956L0 3.68759H5.53933L13.6231 12.7337V3.68759H17.7535V17.5746C17.7535 19.6705 15.1654 20.6584 13.7688 19.0956Z"39 fill="currentColor"40 />41 </svg>42 </a>43 </Button>44 );45}
What it pulls in
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 |
