# V0 Button

Open in v0 button that sends a component registry JSON to v0.dev for instant editing, built with React, the shadcn Button, and Tailwind CSS.

## Installation

V0 Button is a free, open-source React component in the Kokonut UI Buttons collection. Add it with the shadcn CLI, which copies the source into `components/kokonutui/v0-button.tsx`, so the code is yours to change.

```bash
npx shadcn@latest add @kokonutui/v0-button
```

## Usage

```javascript
import V0Button from "@/components/kokonutui/v0-button";

export default function Example() {
  return <V0Button />;
}
```

## Props

- `name`
  - `string`  Default: "liquid-glass-card"
- `url`
  - `string`  Default: `${REGISTRY_URL}/${name}.json`

Registry item JSON to open in v0. Defaults to the KokonutUI entry for `name`.
  Also takes every prop of `React.ComponentProps<typeof Button>`.

## Dependencies

| Needs                                    | Version | Comes from            |
|------------------------------------------|---------|-----------------------|
| `button`                                 |         | shadcn/ui, added by the CLI |
| `cn` from `lib/utils.ts`                |         | shadcn init           |
| React                                    | `19`    | Your app              |
| Tailwind CSS                             | `4`     | Your app              |

No provider, font or global CSS to set up: the file works as soon as it lands.

### Related Components

- [Particle Button](/content/docs/buttons/particle-button/index.html): A status button for async actions, with a spinner, a drawn check, and a particle burst on success.
- [Gradient Button](/content/docs/buttons/gradient-button/index.html): Layered gradient button with emerald, purple, and orange variants, a gradient border, a soft inner glow, press feedback, and an optional icon.
