Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mui-carousel

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mui-carousel

Mui Carousel

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
275
increased by7.84%
Maintainers
1
Weekly downloads
 
Created
Source

npm version downloads size Coverage Status dependencies Status type license Code style

Demo

https://muzikanto.github.io/mui-carousel/

Example

import React from "react";
import Box from "@mui/material/Box";
import Button from "@mui/material/Button";
import { Paper } from "@mui/material";
import Carousel from "mui-carousel";

function Page() {
  return (
    <Carousel
      renderPrev={({ disabled }) => <Button disabled={disabled}>Prev</Button>}
      renderNext={({ disabled }) => <Button disabled={disabled}>Next</Button>}
      renderDot={({ current }) => (
        <Button variant={current ? "contained" : "outlined"} />
      )}
      dots={true}
      showSlides={3}
      speed={1000 * 1}
      spacing={5}
      autoPlay={false}
      // infinity={true} next feature
      // value={slide}
      // onChange={(rawSlide, slide) => console.log("slide", slide)}
      pauseOnHover
      centerMode
      transitionDuration={1000}
      disableTransition={false}
      sx={{
        "& .Carousel-item > *": {
          transition: "all 0.5s",
        },
        "& .Carousel-item.Carousel-center > *": {
          transform: "scale(1.2)",
        },
      }}
    >
      {new Array(5).fill(0).map((_, i) => (
        <Paper key={`item-${i}`} sx={{ height: 200, m: 3 }}>
          Item: {i}
        </Paper>
      ))}
    </Carousel>
  );
}

Keywords

FAQs

Package last updated on 04 Dec 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc