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-tabs-carousel

v1.2.1

Published

Get started with React Tabs Carousel

Downloads

8

Readme

React Tabs Carousel

A React component to generate React Tabs Carousel for rendering to the DOM.

Installation

npm

npm install react-tabs-carousel

yarn

yarn add react-tabs-carousel

pnpm

pnpm add react-tabs-carousel

Usage

The react-tabs-carousel component offers a single-component export that facilitates the creation of a carousel featuring tabs functionality.

All illustrations are presented employing contemporary JavaScript modules and syntax. Furthermore, compatibility with js, as demonstrated by the usage of require(react-tabs-carousel), is also upheld.

React Tabs Carousel Demo

How to Utilizing the React Tabs Carousel Component

import React from "react";
import ReactTabsCarousel from "react-tabs-carousel";
import "react-tabs-carousel/css/index.css";

const MyComponent = () => {
  const tabs = [
    { tabName: "Tab 1", tabContent: <>Content 1</> },
    { tabName: "Tab 2", tabContent: <>Content 2</> },
    { tabName: "Tab 3", tabContent: <>Content 3</> },
    { tabName: "Tab 4", tabContent: <>Content 4</> },
    { tabName: "Tab 5", tabContent: <>Content 5</> },
    { tabName: "Tab 6", tabContent: <>Content 6</> },
    { tabName: "Tab 7", tabContent: <>Content 7</> },
    { tabName: "Tab 8", tabContent: <>Content 8</> },
    { tabName: "Tab 9", tabContent: <>Content 9</> },
    { tabName: "Tab 10", tabContent: <>Content 10</> },
    { tabName: "Tab 11", tabContent: <>Content 11</> },
  ];
  return (
    <ReactTabsCarousel tabsList={tabs} tabsToShow={6} tabsToScroll={1} />
  );
};
export default MyComponent;

Props

| Name | Type | Default Value | Description | | ---------------------- | ------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | tabsList | Array of tabs | {tabs} | Specify tabs for the tab carousel. | | tabsToShow | Number | 6 | Specify the desired number of tabs to be displayed. | | tabsToScroll | Number | 1 | Specify the number of tabs you wish to slide. | | isFixedWidth | Boolean | false | Facilitate the setting of a fixed tab width by setting the value to "true." | | previousText | String | Chevron Left | Specify customizable options for the Previous Button, including the provision of custom SVG icons, font icons, and text, is available. ("IconCaretLeft"). | | nextText | String | Chevron Right | Specify customizable options for the Previous Button, including the next of custom SVG icons, font icons, and text, is available. ("IconCaretRight") | | className | String | " " | You can specify custom class on main div element. | | containerClassName | String | " " | You can specify custom class on container div element. | | contentClassName | String | " " | You can specify custom class on content div element. | | onClick | Click Event | null | You can specify custom onClick on tab button. |