Skip to content
synccn

Orbit

Items circling a centre, in rings of any size.

sc

Installation

$ pnpm dlx shadcn@latest add @synccn/orbit

First time in this project? Connect synccn with one command.

Usage

import { Orbit } from "@/components/ui/orbit";<Orbit radius={110}>…</Orbit>

API reference

Generated from the component's TypeScript types, so it always matches the code.

Orbit

Places children on a circular path that rotates around the centre.

  • radius
    number

    Default 110

    Orbit radius in pixels.

  • duration
    number

    Default 24

    Seconds per revolution.

  • reverse
    boolean

    Default false

    Orbit anticlockwise.

  • path
    boolean

    Default true

    Draw the dashed orbit path.

  • children
    React.ReactNode

    Content to render.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

No ARIA roles, key handling or motion settings in its source. It renders plain elements, so its accessibility comes from the content and labels you give it.