āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/karthikmudunuri/eldoraui/components/orbit-rotation ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
npx shadcn@latest add @eldoraui/orbit-rotation
</TabsContent>
<TabsContent value="manual">
<Steps>
<Step>Copy and paste the following code into your project.</Step>
components/eldoraui/orbit-rotation.tsx
<Step>Add the required CSS animations</Step>
Add the following animations to your global CSS file.
@theme inline {
@keyframes orbit-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
}
<Step>Update the import paths to match your project setup.</Step> </Steps> </TabsContent> </Tabs>
import { FaAws, FaReact } from "react-icons/fa"
import { OrbitRotation } from "@/components/eldoraui/orbit-rotation"
<OrbitRotation
icons={[
{ Icon: FaReact, color: "#61DAFB", name: "React" },
{ Icon: FaAws, color: "#FF9900", name: "AWS" },
]}
orbitCount={2}
size="md"
speed="medium"
/>
| Prop | Type | Default | Description |
| ------------ | ------------------------------ | ---------- | ----------------------------------- |
| icons | OrbitIcon[] | - | Array of icons to display in orbits |
| orbitCount | number | 3 | Number of orbit rings |
| orbitGap | number | 8 | Gap between orbits in rem units |
| centerIcon | OrbitIcon | - | Icon to display in the center |
| className | string | - | Additional CSS classes |
| size | "sm" \| "md" \| "lg" | "md" | Size of the component |
| speed | "slow" \| "medium" \| "fast" | "medium" | Animation speed |
| Prop | Type | Description |
| ------- | --------------------- | ------------------------------- |
| Icon | React.ComponentType | The icon component to render |
| color | string | The color of the icon |
| name | string | Optional name for accessibility |
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā