Orbit

Items that circle a center while staying upright. Nest one for a second ring.

Installation#

pnpm dlx shadcn@latest add @balick/orbit

Or pass the full URL: https://ui.balick.me/r/orbit.json

Usage#

import { Orbit } from "@/components/ui/orbit"

export function Integrations() {
  return (
    <Orbit size="14rem" center={<Logo />}>
      <Chip>Mail</Chip>
      <Chip>Calendar</Chip>
      <Chip>Drive</Chip>
    </Orbit>
  )
}

Props#

PropTypeDefault
center

What sits in the middle. It can be another Orbit.

React.ReactNode—
size

Diameter of the ring, as a CSS length.

string"16rem"
duration

Duration of one turn, as a CSS time.

string"30s"
reverse

Turn counter-clockwise.

booleanfalse
ring

Draw the ring.

booleantrue