Skip to content

    Browse components

    Radial Socials

    A share button that fans social links out along a radial arc with a staggered spring, a drawn guide arc and brand-colored hovers.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/radial-socials

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/radial-socials.json

    Usage

    import { RadialSocials } from "@/components/ui/radial-socials";
    
    <RadialSocials
      items={[
        { label: "X", href: "https://x.com", icon: <XIcon />, color: "#000" },
        { label: "GitHub", href: "https://github.com", icon: <GitHubIcon />, color: "#24292f" },
      ]}
    />

    Props

    PropTypeDefaultDescription
    itemsReactNode—Array of { label, href, icon, color? }.
    radiusnumber120Distance from the button to each icon, in px.
    anglenumber-90Direction the arc faces in degrees (-90 is up).
    spreadnumber180Arc width in degrees; 360 is a full ring.
    staggernumber0.05Seconds between icons springing out.
    defaultOpenboolean—Start opened (default false).
    guidebooleantrueFaint dashed guide arc behind the icons.
    labelstring"Share"Accessible label of the center button.
    classNamestring—Extra classes for the root element.