Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-swipeable-views

> 前端框架
Open source

A React component for swipeable views. :snowflake:

4.5K stars0 likes2 views
WebsiteGitHub

About

A React component for swipeable views. :snowflake:

react-swipeable-views

A React component for swipeable views.

Package Version Download Size (kB gzipped)
react-swipeable-views 5.08
react-swipeable-views-utils 3.52
react-swipeable-views-native ?

Documentation

Get started

  • Installation
  • Usage
  • Example projects
  • Supported projects

Component API

  • Component API

More

  • Supported projects
  • Demos

Installation

Browser

bash
npm install --save react-swipeable-views

Native (experimental)

bash
npm install --save react-swipeable-views-native

The problem solved

Check out the demos from a mobile device (real or emulated). It's tiny (<10 kB gzipped), it quickly renders the first slide, then lazy-loads the others.

Simple example

Browser

javascript
import React from 'react';
import SwipeableViews from 'react-swipeable-views';

const styles = {
  slide: {
    padding: 15,
    minHeight: 100,
    color: '#fff',
  },
  slide1: {
    background: '#FEA900',
  },
  slide2: {
    background: '#B3DC4A',
  },
  slide3: {
    background: '#6AC0FF',
  },
};

const MyComponent = () => (
  <SwipeableViews>
    

    

    

  </SwipeableViews>
);

export default MyComponent;

Native (experimental)

react-native support is experimental and I have no plan pushing it forward. I start to think that lower level abstraction to share the implementation between the platforms are more appropriate. We have two different implementations of the react-swipeable-views API.

…

Who's using react-swipeable-views?

  • Doctolib
  • mastodon
  • Material-UI
  • Tinder
  • Uber
  • Are you using this library? Add your company or project.

License

This project is licensed under the terms of the MIT license.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptcomponentreactreact-nativeswipe

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架