# Corner Frame

> A panel with cut-steel chamfered corners.

The shape of game menus and sci-fi panels, with a border that follows the cuts, deepening a little in use.

- Family: Chrome
- Plan: Creative. Included with Creative.
- Requires: React, Tailwind CSS v4 and the motion package
- Page with a live preview: https://galactrex.com/ui/corner-frame/
- Licence: https://galactrex.com/ui/license/

## Install

```sh
npx @galactrex/ui login   # once, with an API key from https://galactrex.com/account/
npx @galactrex/ui add corner-frame
```

It installs to `components/galactrex/corner-frame.tsx`, with the shared motion helpers beside it. First time in a project: `npx @galactrex/ui init` (setup guide: https://galactrex.com/docs/ui-components-setup/).

## Usage

```tsx
import { CornerFrame } from "@/components/galactrex/corner-frame";

<CornerFrame corners="all"><Menu /></CornerFrame>
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `children` | `ReactNode` | — | Content. |
| `cut` | `number` | `16` | Corner cut in px. |
| `corners` | `"all" \| "diagonal" \| "top-right" \| "bottom-left"` | `"diagonal"` | Which corners. |
| `responsive` | `boolean` | `true` | Deepen on hover or focus. |
| `className` | `string` | — | Extra classes for the outer element. |

## Variants

- **Game menu.** All four corners cut.

## Accessibility

- Content is clipped, not hidden; keep padding so nothing sits in the cuts.

## Motion

- Spring clip-path.
- Reduced motion: fixed cuts.
