diff --git a/docs/data/material/components/floating-action-button/FloatingActionButtonZoom.js b/docs/data/material/components/floating-action-button/FloatingActionButtonZoom.js
index e4945c497d8d87..c8313b1319066e 100644
--- a/docs/data/material/components/floating-action-button/FloatingActionButtonZoom.js
+++ b/docs/data/material/components/floating-action-button/FloatingActionButtonZoom.js
@@ -1,6 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
-import SwipeableViews from 'react-swipeable-views';
import { useTheme } from '@mui/material/styles';
import AppBar from '@mui/material/AppBar';
import Tabs from '@mui/material/Tabs';
@@ -66,10 +65,6 @@ export default function FloatingActionButtonZoom() {
setValue(newValue);
};
- const handleChangeIndex = (index) => {
- setValue(index);
- };
-
const transitionDuration = {
enter: theme.transitions.duration.enteringScreen,
exit: theme.transitions.duration.leavingScreen,
@@ -119,21 +114,15 @@ export default function FloatingActionButtonZoom() {
-
-
- Item One
-
-
- Item Two
-
-
- Item Three
-
-
+
+ Item One
+
+
+ Item Two
+
+
+ Item Three
+
{fabs.map((fab, index) => (
{
- setValue(index);
- };
-
const transitionDuration = {
enter: theme.transitions.duration.enteringScreen,
exit: theme.transitions.duration.leavingScreen,
@@ -120,21 +115,15 @@ export default function FloatingActionButtonZoom() {
-
-
- Item One
-
-
- Item Two
-
-
- Item Three
-
-
+
+ Item One
+
+
+ Item Two
+
+
+ Item Three
+
{fabs.map((fab, index) => (
{
- setActiveStep((prevActiveStep) => prevActiveStep + 1);
- };
-
- const handleBack = () => {
- setActiveStep((prevActiveStep) => prevActiveStep - 1);
- };
-
- const handleStepChange = (step) => {
- setActiveStep(step);
- };
-
- return (
-
-
- {images[activeStep].label}
-
-
- {images.map((step, index) => (
-
- {Math.abs(activeStep - index) <= 2 ? (
-
- ) : null}
-
- ))}
-
-
- Next
- {theme.direction === 'rtl' ? (
-
- ) : (
-
- )}
-
- }
- backButton={
-
- }
- />
-
- );
-}
-
-export default SwipeableTextMobileStepper;
diff --git a/docs/data/material/components/steppers/SwipeableTextMobileStepper.tsx b/docs/data/material/components/steppers/SwipeableTextMobileStepper.tsx
deleted file mode 100644
index 7eb9ecd57e5960..00000000000000
--- a/docs/data/material/components/steppers/SwipeableTextMobileStepper.tsx
+++ /dev/null
@@ -1,128 +0,0 @@
-import * as React from 'react';
-import { useTheme } from '@mui/material/styles';
-import Box from '@mui/material/Box';
-import MobileStepper from '@mui/material/MobileStepper';
-import Paper from '@mui/material/Paper';
-import Typography from '@mui/material/Typography';
-import Button from '@mui/material/Button';
-import KeyboardArrowLeft from '@mui/icons-material/KeyboardArrowLeft';
-import KeyboardArrowRight from '@mui/icons-material/KeyboardArrowRight';
-import SwipeableViews from 'react-swipeable-views';
-import { autoPlay } from 'react-swipeable-views-utils';
-
-const AutoPlaySwipeableViews = autoPlay(SwipeableViews);
-
-const images = [
- {
- label: 'San Francisco – Oakland Bay Bridge, United States',
- imgPath:
- 'https://images.unsplash.com/photo-1537944434965-cf4679d1a598?auto=format&fit=crop&w=400&h=250&q=60',
- },
- {
- label: 'Bird',
- imgPath:
- 'https://images.unsplash.com/photo-1538032746644-0212e812a9e7?auto=format&fit=crop&w=400&h=250&q=60',
- },
- {
- label: 'Bali, Indonesia',
- imgPath:
- 'https://images.unsplash.com/photo-1537996194471-e657df975ab4?auto=format&fit=crop&w=400&h=250',
- },
- {
- label: 'Goč, Serbia',
- imgPath:
- 'https://images.unsplash.com/photo-1512341689857-198e7e2f3ca8?auto=format&fit=crop&w=400&h=250&q=60',
- },
-];
-
-function SwipeableTextMobileStepper() {
- const theme = useTheme();
- const [activeStep, setActiveStep] = React.useState(0);
- const maxSteps = images.length;
-
- const handleNext = () => {
- setActiveStep((prevActiveStep) => prevActiveStep + 1);
- };
-
- const handleBack = () => {
- setActiveStep((prevActiveStep) => prevActiveStep - 1);
- };
-
- const handleStepChange = (step: number) => {
- setActiveStep(step);
- };
-
- return (
-
-
- {images[activeStep].label}
-
-
- {images.map((step, index) => (
-
- {Math.abs(activeStep - index) <= 2 ? (
-
- ) : null}
-
- ))}
-
-
- Next
- {theme.direction === 'rtl' ? (
-
- ) : (
-
- )}
-
- }
- backButton={
-
- }
- />
-
- );
-}
-
-export default SwipeableTextMobileStepper;
diff --git a/docs/data/material/components/steppers/steppers.md b/docs/data/material/components/steppers/steppers.md
index 909ed00bd884f3..8b8181d6db1497 100644
--- a/docs/data/material/components/steppers/steppers.md
+++ b/docs/data/material/components/steppers/steppers.md
@@ -94,13 +94,6 @@ The current step and total number of steps are displayed as text.
{{"demo": "TextMobileStepper.js", "bg": true}}
-### Text with carousel effect
-
-This demo uses
-[react-swipeable-views](https://github.com/oliviertassinari/react-swipeable-views) to create a carousel.
-
-{{"demo": "SwipeableTextMobileStepper.js", "bg": true}}
-
### Dots
Use dots when the number of steps is small.
diff --git a/docs/data/material/components/tabs/FullWidthTabs.js b/docs/data/material/components/tabs/FullWidthTabs.js
index 8439038ffc54b5..2e8a08deba0e8a 100644
--- a/docs/data/material/components/tabs/FullWidthTabs.js
+++ b/docs/data/material/components/tabs/FullWidthTabs.js
@@ -1,6 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
-import SwipeableViews from 'react-swipeable-views';
import { useTheme } from '@mui/material/styles';
import AppBar from '@mui/material/AppBar';
import Tabs from '@mui/material/Tabs';
@@ -49,10 +48,6 @@ export default function FullWidthTabs() {
setValue(newValue);
};
- const handleChangeIndex = (index) => {
- setValue(index);
- };
-
return (
@@ -69,21 +64,15 @@ export default function FullWidthTabs() {
-
-
- Item One
-
-
- Item Two
-
-
- Item Three
-
-
+
+ Item One
+
+
+ Item Two
+
+
+ Item Three
+
);
}
diff --git a/docs/data/material/components/tabs/FullWidthTabs.tsx b/docs/data/material/components/tabs/FullWidthTabs.tsx
index 0b3b1c34d556cf..99ff253bb02f63 100644
--- a/docs/data/material/components/tabs/FullWidthTabs.tsx
+++ b/docs/data/material/components/tabs/FullWidthTabs.tsx
@@ -1,5 +1,4 @@
import * as React from 'react';
-import SwipeableViews from 'react-swipeable-views';
import { useTheme } from '@mui/material/styles';
import AppBar from '@mui/material/AppBar';
import Tabs from '@mui/material/Tabs';
@@ -49,10 +48,6 @@ export default function FullWidthTabs() {
setValue(newValue);
};
- const handleChangeIndex = (index: number) => {
- setValue(index);
- };
-
return (
@@ -69,21 +64,15 @@ export default function FullWidthTabs() {
-
-
- Item One
-
-
- Item Two
-
-
- Item Three
-
-
+
+ Item One
+
+
+ Item Two
+
+
+ Item Three
+
);
}
diff --git a/docs/data/material/components/tabs/tabs.md b/docs/data/material/components/tabs/tabs.md
index f75936d72dee57..443e2daf8cda99 100644
--- a/docs/data/material/components/tabs/tabs.md
+++ b/docs/data/material/components/tabs/tabs.md
@@ -67,7 +67,6 @@ Fixed tabs should be used with a limited number of tabs, and when a consistent p
### Full width
The `variant="fullWidth"` prop should be used for smaller views.
-This demo also uses [react-swipeable-views](https://github.com/oliviertassinari/react-swipeable-views) to animate the Tab transition, and allowing tabs to be swiped on touch devices.
{{"demo": "FullWidthTabs.js", "bg": true}}