Account

Chrome

Creative

Corner Frame

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

Install

Included with Creative: needs your API key. Initialize and log in once.

Terminal
npx @galactrex/ui add corner-frame

Usage

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

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

Source

Installs to components/galactrex/corner-frame.tsx, with the shared motion primitives beside it.

Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.

See plans

Props

PropTypeDefaultDescription
childrenReactNode—Content.
cutnumber16Corner cut in px.
corners"all" | "diagonal" | "top-right" | "bottom-left""diagonal"Which corners.
responsivebooleantrueDeepen on hover or focus.
classNamestring—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 and reduced motion

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