npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-circle-wave

v1.0.4

Published

React component designed to create a visually appealing circle with a wave effect animation around it

Downloads

37

Readme

react-circle-wave

A React component to create a visually appealing circle with an animated wave effect around it. Integrate this component into your React application to add dynamic and eye-catching visuals to your UI!

Demo

On the project's website, you can access Storybook and a simple music player to see the component in action.

Installation

You can install via npm:

npm i react-circle-wave

Usage

To use CircleWave in your React application, simply import the component and include it in your JSX markup:

import React from 'react';
import { CircleWave } from 'react-circle-wave';

function App() {
    return (
        <div>
            <CircleWave size={100} color="magenta">
                <span>LIVE</span>
            </CircleWave>
        </div>
    );
}

export default App;

Props

Prop | Default | Description --- | --- | --- size | - | Sets the width and height of the root element in pixels. The size of the inner circle and waves are calculated respectively. speed | 1000 | Sets the duration of each animation cycle in milliseconds. Higher values result in slower animations. points | 9 | Sets the number of moving anchor points on the wave circles. opacity | 0.5 | Sets the opacity of the waves on a scale from 0 to 1. amplitude | 0.2 | Sets the amplitude of animated waves as a fraction of the total size. stopped | false | Determines whether the animation should be stopped or playing. The waves take one animation cycle to fully stop as they collapse/expand smoothly when this prop is changed. color | - | Sets the solid fill color used for the overlay circle and waves. colors | - | An array of colors to form an evenly spaced gradient color for the overlay circle and waves. gradient | - | An array of gradient "stops" to create more advanced gradients with custom stops. Each stop is an object containing a color property and an offset property indicating the color position in the shape on a scale from 0 to 100. gradientRotation | 90 | Sets gradient rotation in degrees (0 to 360). children | - | Any valid React node to be rendered over the circle. style | - | Any valid HTML style to be passed to the root div's style. ...props | - | Any other valid div props to be passed to root div.

Contributions

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request on GitHub.