# V button 20

> Star button with count

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/v-button-20).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-button-20
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-button-20-light-e3bbe0976f7e6242.png
- Registry item: https://ui.cnippet.dev/r/v-button-20.json
- Categories: button
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/v-button-20.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/button`

## Files

### `registry/default/variants/v-button-20.tsx`

```tsx
import { StarIcon } from "lucide-react";
import { Button } from "@/registry/default/ui/button";

export function Pattern() {
  return (
    <Button className="pe-0" variant="outline">
      <StarIcon aria-hidden="true" />
      Star
      <span className="relative ms-1 px-2 font-medium text-muted-foreground text-xs before:absolute before:inset-0 before:left-0 before:w-px before:bg-border">
        589
      </span>
    </Button>
  );
}
```
