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

co-carrousels

v1.4.0

Published

Co-Carrousels is a simple tool for make image Carousels on React.js. We are start. This is a original project of [Samuel](https://github.com/SamuelVasquezGonzalez) :)

Downloads

10

Readme

Co-Carrousels

Co-Carrousels is a simple tool for make image Carousels on React.js. We are start. This is a original project of Samuel :)

Examples

We have two Carousels types for you.

Carousel for Full page

This carousel is designed so that you can use it completely on your screen. With full screen we mean that it uses the width: 100% and the height: 100vh; You can add more content below according to your needs.

This is a Fullpage Carousel


Small Carousel

This carousel is designed to be placed anywhere in React, you can fill spaces with small carousels to diversify the content a bit more, it's a nice minimalist design.

You can place the number of carousels you want without affecting performance and also that each carousel works independently.

This is a Normal Carousel


Instalation

To start using the library, we must install the package with our npm command make sure you have formatted your styles so you don't have any conflicts with the styles of the carousels

$ npm install co-carrousels

Once the module is installed it is time to start using the carousels

The module provides you 3 functions to import FullCarrousel, SmallCarrousel and CoImage

The Full Carrousel, Small Carrousel modules are the container components of the images that will contain

use this module if you want to use screen carousel

import { FullCarrousel, CoImage } from "co-carrousels";

export default function MyComponent() {
    return (
        <>
            <FullCarrousel controls="true">
                <CoImage src="imagePath" alt="" />
                <CoImage src="imagePath" alt="" />
                <CoImage src="imagePath" alt="" />

                {/*More images*/}
            </FullCarrousel>
        </>
    )
}

the controls attribute receives true and false, with this attribute you can decide whether or not to show the buttons to change the images


Use this module if you want to use the small carousel that you can use anywhere in your application

import { SmallCarrousel, CoImage } from "co-carrousels";

export default function MyComponent() {
    return (
        <>
            <SmallCarrousel borderRadius="12px" controls="true">
                <CoImage src="imagePath" alt="" />
                <CoImage src="imagePath" alt="" />
                <CoImage src="imagePath" alt="" />

                {/*More images*/}
            </SmallCarrousel>
        </>
    )
}

the borderRadius attribute allows you to put a rounded border to your carousel, you just have to put the amount in pixels as if it were CSS