Installation
$ pnpm dlx shadcn@latest add @synccn/orbitFirst 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
numberDefault
110Orbit radius in pixels.
- duration
numberDefault
24Seconds per revolution.
- reverse
booleanDefault
falseOrbit anticlockwise.
- path
booleanDefault
trueDraw the dashed orbit path.
- children
React.ReactNodeContent to render.
- className
stringExtra 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
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
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.