Radial Socials

radial social icons arranged in circles, with smooth expansion and rotation

Loading...

Installation

npx shadcn@latest add @scrollxui/radial-socials 

Usage

import {
  RadialSocials,
  RadialSocialsContent,
  RadialCircular,
  RadialIcon,
} from '@/components/ui/radial-socials';
<RadialSocials
  animationDelay={200}
  expandDuration={600}
  className='w-50 h-[120px]'
>
  <RadialSocialsContent>
    <RadialCircular radius={70} duration={20} startAngle={39}>
      <RadialIcon icon={<Zap className='w-5 h-5' />} />
      <RadialIcon icon={<Rocket className='w-5 h-5' />} />
      <RadialIcon icon={<Flame className='w-5 h-5' />} />
      <RadialIcon icon={<Wind className='w-5 h-5' />} />
    </RadialCircular>
  </RadialSocialsContent>
</RadialSocials>

API Reference

Radial Socials

radial social icons arranged in circles, with smooth expansion and rotation

Props

PropertyTypeDefaultDescription
childrenReactNoderequired
Nested RadialSocialsContent, RadialCircular, or RadialIcon components.
classNamestring-
Additional classes for the RadialSocials container.
animationDelaynumber150
Delay (ms) between the animation of each icon.
expandDurationnumber800
Duration (ms) for icons to expand from the center.
containerClassNamestring-
Additional classes for the outermost content wrapper.
radiusnumberrequired
Radius of the circular path for icons.
durationnumber20
Rotation duration of the circle in seconds.
circleLineClassNamestring-
Custom class names for the circular border line.
startAnglenumber
Starting angle (degrees) for placing the first icon.
iconReactNoderequired
Icon element to display in the radial circle.
anglenumberauto
Angle (degrees) to place this icon; overrides automatic spacing.

Built withby Ahdeetai.