Orbital Flow

The Orbital Flow component is a compact and interactive orbital flow, ideal for responsive navigation. It offers a toggleable design with smooth animations, making it a versatile choice for modern web applications.

Center Image
Messages
Substack
Recordings
Spotify
Instagram
Slack
Notion
Discord
Youtube

Usage

Follow the steps below to add the Orbital Flow Component to your project.

1

Add the import statement for the component

import OrbitalFlow from "@/components/elixir-ui/orbital-flow"; 

2

Add the inner and outer tags props to the component

const innerTags = [
  { name: "Slack", icon: <FaSlack /> },
  { name: "Notion", icon: <SiNotion /> },
  { name: "Discord", icon: <FaDiscord /> },
  { name: "Youtube", icon: <FaYoutube /> },
];

const outerTags = [
{ name: "Messages", icon: <FaEnvelope /> },
{ name: "Substack", icon: <FaRss /> },
{ name: "Recordings", icon: <FaMicrophone /> },
{ name: "Spotify", icon: <FaSpotify /> },
{ name: "Instagram", icon: <FaInstagram /> },
];

2

Import the component in your project and use it

<div className="h-full w-full flex items-center justify-center">
    <OrbitalFlow
          outerTags={outerTags}
          innerTags={innerTags}
          centerImageSrc="/components/john-lennon.jpg"
          outerOrbitDiameter={850}
          innerOrbitDiameter={550}
          outerRotationSpeed={32}
          innerRotationSpeed={30}
    />
</div>

Props

PropTypeDefaultDescription
outerTagsOrbitTag[]-The outer tags to be displayed
outerTags.namestring-The name of the outer tag
outerTags.iconReact.ReactNode-The icon of the outer tag
innerTagsOrbitTag[]-The inner tags to be displayed
innerTags.namestring-The name of the inner tag
innerTags.iconReact.ReactNode-The icon of the inner tag
centerImageSrcstring-The source of the center image
outerOrbitDiameternumber850The diameter of the outer orbit
innerOrbitDiameternumber550The diameter of the inner orbit
outerRotationSpeednumber32The speed of the outer rotation
innerRotationSpeednumber30The speed of the inner rotation
classNamestring-Additional CSS classes