Account

Chrome

Creative

Animated Corners

A crisp selection indicator for tiles, thumbnails and level-select grids.

Install

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

Terminal
npx @galactrex/ui add animated-corners

Usage

Example
import { AnimatedCorners } from "@/components/galactrex/animated-corners";

<AnimatedCorners selected={i === picked}><Tile /></AnimatedCorners>

Source

Installs to components/galactrex/animated-corners.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—Framed content.
cornernumber14Bracket length at rest.
widthnumber1.5Stroke width.
closebooleantrueClose on hover or focus.
selectedbooleanfalseKeep it closed.
colorstring—Any CSS colour; defaults to a theme token.
classNamestring—Extra classes for the outer element.

Variants

  • Level select. A grid where the chosen tile stays framed.

Accessibility

  • Focus within closes it like hover.

Motion and reduced motion

  • Spring length on eight bars.
  • Reduced motion: instant.