Account

Chrome

Creative

Animated Divider

Draws outward from the middle on arrival, with an optional label and a dot running along it now and then.

Install

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

Terminal
npx @galactrex/ui add animated-divider

Usage

Example
import { AnimatedDivider } from "@/components/galactrex/animated-divider";

<AnimatedDivider label="Chapter 2" />

Source

Installs to components/galactrex/animated-divider.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
labelReactNode—Middle label.
travelerbooleantrueRunning dot.
line"solid" | "dashed" | "dotted""solid"Line style.
classNamestring—Extra classes for the outer element.

Variants

  • Labelled. A section name in the middle.

Accessibility

  • role=separator.

Motion and reduced motion

  • Scale from the centre, transform for the dot; pauses offscreen.
  • Reduced motion: drawn.