# P button 22

> Directional pad control buttons

A shadcn/ui block from the [@coss](https://coss.com/ui) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/coss/p-button-22).

- Page, with a live preview: https://shadcn.exchange/r/coss/p-button-22
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/coss/p-button-22-light-26fc5028d3006731.png
- Registry item: https://coss.com/ui/r/p-button-22.json
- Categories: button
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://coss.com/ui/r/p-button-22.json
```

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

## Dependencies

- npm packages: `lucide-react`
- Registry items: `@coss/button`

## Files

### `registry/default/particles/p-button-22.tsx`

```tsx
import {
  ChevronDownIcon,
  ChevronLeftIcon,
  ChevronRightIcon,
  ChevronUpIcon,
  CircleIcon,
} from "lucide-react";
import { Button } from "@/registry/default/ui/button";

export default function Particle() {
  return (
    <div className="inline-grid w-fit grid-cols-3 gap-1">
      <Button
        aria-label="Pan camera up"
        className="col-start-2"
        size="icon"
        variant="outline"
      >
        <ChevronUpIcon aria-hidden="true" />
      </Button>
      <Button
        aria-label="Pan camera left"
        className="col-start-1"
        size="icon"
        variant="outline"
      >
        <ChevronLeftIcon aria-hidden="true" />
      </Button>
      <div aria-hidden="true" className="flex items-center justify-center">
        <CircleIcon className="size-4 opacity-80" />
      </div>
      <Button aria-label="Pan camera right" size="icon" variant="outline">
        <ChevronRightIcon aria-hidden="true" />
      </Button>
      <Button
        aria-label="Pan camera down"
        className="col-start-2"
        size="icon"
        variant="outline"
      >
        <ChevronDownIcon aria-hidden="true" />
      </Button>
    </div>
  );
}
```
