Socket
Socket
Sign inDemoInstall

react-tag-sphere

Package Overview
Dependencies
5
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-tag-sphere

Simple React Tag Sphere component with blur effect


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-tag-sphere

ezgif com-gif-maker

Make Animated rotating tag spheres with this library instantly. All credits to jjsanmartino03 for providing this example

Basic Example

import React from "react";
import { TagSphere } from "react-tag-sphere";

export default function App() {
  return <TagSphere />;
}

No Blur Example

This will disable blur effect on tags as it goes behind. In this example we also see how to change the styles on the font;

import React from "react";
import { TagSphere } from "react-tag-sphere";

export default function App() {
  return (
    <TagSphere
        style={{
          color: "green",
          fontWeight: "bold",
          fontSize: "1.2rem",
          fontFamily: "monospace",
        }}
        blur={false}
      />
   );
}

Using Images


const tags = [
  <img
      width={50}
      src={"https://cdn.svgporn.com/logos/react.svg"}
      alt={"Random image"}
    />,
    <img
      width={50}
      src={"https://cdn.svgporn.com/logos/javascript.svg"}
      alt={"Random image"}
    />,
 ]
 import React from "react";
import { TagSphere } from "react-tag-sphere";

export default function App() {
  return (
    <TagSphere
        tags={tags}
      />
   );
}

Properties

PropertyTypeDefault
tags(string | ReactNode)[]Example given in demo on top
radiusnumbertext.length * 0.25
maxSpeednumber7
initialSpeednumber32
initialDirectionnumber135 (degrees)
keepRollingAfterMouseOutbooleantrue
fullWidthbooleanfalse
fullHeightbooleanfalse
userSelectbooleanfalse
blurbooleantrue
blurMultipliernumber1
grayscalebooleantrue

FAQs

Last updated on 16 May 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc