react-swipeable-list alternatives and similar libraries
Based on the "Miscellaneous" category.
Alternatively, view react-swipeable-list alternatives based on common mentions on social networks and blogs.
-
react-pdf
Display PDFs in your React app as easily as if they were images. -
typography
A powerful toolkit for building websites with beautiful design -
react-resizable-and-movable
🖱 A resizable and draggable component for React. -
react-simple-chatbot
:speech_balloon: Easy way to create conversation chats -
react-resizable-box
📏 A resizable component for React. -
react-awesome-query-builder
User-friendly query builder for React -
react-pdf-viewer
A React component to view a PDF document -
react-json-tree
React JSON Viewer Component, Extracted from redux-devtools. -
react-facebook
Facebook components like a Login button, Like, Share, Chat, Comments, Page or Embedded Post -
react-avatar
Universal avatar makes it possible to fetch/generate an avatar based on the information you have about that user. -
react-blur
React component to blur image backgrounds using canvas. -
chessboardjsx
:black_square_button: Chessboard built for React -
react-images-uploader
React.js component for uploading images to the server -
react-darkreader
🌓 A React Hook for adding a dark / night mode to your site. -
react-svg-buttons
React configurable animated svg buttons -
react-file-reader-input
React file input component for complete control over styling and abstraction from file reading. -
react-dnr
Dragable and Resizable window build with React.js -
react-tabguard
Limit tabbing within specified area with an ease -
react-apple-signin-auth
Apple signin for React using the official Apple JS SDK -
material-color-hash
Hash strings to Material UI colors -
react-swipe-to-delete-ios
A simple React component to reproduce the way iOS deletes an item in a list -
react-headings
⚛ Auto-increment your HTML headings (h1, h2, etc.) for improved accessibility and SEO. -
react-avatar-generator
Generate fun kaleidoscope for user avatars. -
react-demo-tab
📑 React component to easily create demos of other components -
react-filter-control
The react UI component for building complex filter criteria -
@restpace/schema-form
A React component package for generating forms based on (almost) the full power of JSON Schema -
react-advanced-news-ticker
A powerful, flexible, lightweight and animated vertical news ticker component for React. -
react-searchbox-awesome
The coolest searchbox for React.js! -
react-mouse-select
A simple react library for selecting elements by moving the mouse -
fastcomments-react
A React component for FastComments -
react-customizable-chat-bot
Customizable chat bot library using React and Typescript -
react-pulse-text
React component that allows you to animate the text you want -
react-color-scroll
Blend through colors as you scroll down the page. -
react-cloud-letter
Wrap your letter in lovely cloud-like shape with React. -
react-pagespeed-score
A React component for display a dial-type chart of PageSpeed Insights.
Appwrite - The Open Source Firebase alternative introduces iOS support
Do you think we are missing an alternative of react-swipeable-list or a related project?
README
react-swipeable-list
A configurable react component to render list with swipeable items.
Demo • Installation • Usage
<!-- prettier-ignore-start -->
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
<!-- ALL-CONTRIBUTORS-BADGE:END -->
<!-- prettier-ignore-end -->
React Swipeable List component
A react component to render list with swipeable items. Items can have one or more actions on left (leading) and right (trailing) swipe and different behavior depending on props. See examples
This repository contains new version of sandstreamdev/react-swipeable-list/. Whole component was reimplemented to support buttons in revealed content and different swipe behaviors. More information can be found in this issue: Clarify relationship with @sandstreamdev/react-swipeable-list
Demo
Check working example page
Installation
npm install react-swipeable-list
# or via yarn
yarn add react-swipeable-list
Usage
import {
LeadingActions,
SwipeableList,
SwipeableListItem,
SwipeAction,
TrailingActions,
} from 'react-swipeable-list';
import 'react-swipeable-list/dist/styles.css';
const leadingActions = () => (
<LeadingActions>
<SwipeAction onClick={() => console.info('swipe action triggered')}>
Action name
</SwipeAction>
</LeadingActions>
);
const trailingActions = () => (
<TrailingActions>
<SwipeAction
destructive={true}
onClick={() => console.info('swipe action triggered')}
>
Delete
</SwipeAction>
</TrailingActions>
);
<SwipeableList>
<SwipeableListItem
leadingActions={leadingActions()}
trailingActions={trailingActions()}
>
Item content
</SwipeableListItem>
</SwipeableList>;
SwipeableList Props
fullSwipe
Type: boolean
(optional, default: false
)
Changes behavior of IOS
list type.
When true
and swipe is done beyond threshold
and released the action is triggered.
When set to false
actions are only opened and they need to be clicked to trigger action.
destructiveCallbackDelay
Type: milliseconds
(optional, default: 1000
)
Time in milliseconds after which swipe action should be called for destructive
swipe action (item deletion).
It can be set for the whole list or for every item. See destructiveCallbackDelay
for SwipeableListItem
. Value from the SwipeableListItem
takes precedence.
style
Type: object
(optional, default: undefined
)
Additional styles for list tag.
type
Type: ListType (ANDROID | IOS | MS)
(optional, default: ANDROID
)
Changes behavior of swipeable items.
ANDROID
IOS
MS
Tag
Type: string
(optional, default: div
)
HTML tag that is used to create this component.
scrollStartThreshold
Type: number
(optional, default: 10
)
How far in pixels scroll needs to be done to block swiping. After scrolling is started and goes beyond the threshold, swiping is blocked.
It can be set for the whole list or for every item. See scrollStartThreshold
for SwipeableListItem
. Value from the SwipeableListItem
takes precedence.
swipeStartThreshold
Type: number
(optional, default: 10
)
How far in pixels swipe needs to be done to start swiping on list item. After a swipe is started and goes beyond the threshold, scrolling is blocked.
It can be set for the whole list or for every item. See swipeStartThreshold
for SwipeableListItem
. Value from the SwipeableListItem
takes precedence.
threshold
Type: number
(optional, default: 0.5
)
How far swipe needs to be done to trigger attached action. 0.5
means that item needs to be swiped to half of its width, 0.25
- one-quarter of width.
It can be set for the whole list or for every item. See threshold
for SwipeableListItem
. Value from the SwipeableListItem
takes precedence.
SwipeableListItem Props
blockSwipe
Type: boolean
(optional, default: false
)
If set to true
all defined swipe actions are blocked.
destructiveCallbackDelay
Type: milliseconds
(optional, default: 1000
)
Time in milliseconds after which swipe action should be called for destructive
swipe action (item deletion).
It can be set for the whole list or for every item. See destructiveCallbackDelay
for SwipeableList
. Value from the SwipeableListItem
takes precedence.
leadingActions
Type: LeadingActions component
Container component that sets up correct props in SwipeAction
. See examples for usage.
onSwipeStart
Type: () => void
Fired after swipe has started (after drag gesture passes the swipeStartThreshold
distance in pixels).
onSwipeEnd
Type: () => void
Fired after swipe has ended.
onSwipeProgress
Type: (progress: number) => void
Fired every time swipe progress changes. The reported progress
value is always an integer in range 0 to 100 inclusive.
scrollStartThreshold
Type: number
(default: 10
)
How far in pixels scroll needs to be done to block swiping. After scrolling is started and goes beyond the threshold, swiping is blocked.
It can be set for the whole list or for every item. See scrollStartThreshold
for SwipeableList
. Value from the SwipeableListItem
takes precedence.
swipeStartThreshold
Type: number
(default: 10
)
How far in pixels swipe needs to be done to start swiping on list item. After a swipe is started and goes beyond the threshold, scrolling is blocked.
It can be set for the whole list or for every item. See swipeStartThreshold
for SwipeableList
. Value from the SwipeableListItem
takes precedence.
threshold
Type: number
(default: 0.5
)
How far swipe needs to be done to trigger action. 0.5
means that item needs to be swiped to half of its width, 0.25
- one-quarter of width.
It can be set for the whole list or for every item. See threshold
for SwipeableList
. Value from the SwipeableListItem
takes precedence.
trailingActions
Type: TrailingActions component
Container component that sets up correct props in SwipeAction
. See examples for usage.
SwipeAction Props
destructive
Type: boolean
(optional, default: false
)
If set to true
then remove animation is played and callback is called after destructiveCallbackDelay
.
onClick
Type: function
(required)
Callback function that should be call after swipe action is triggered.
Tag
Type: string
(optional, default: span
)
HTML tag that is used to create this component.
Contributors ✨
Thanks goes to these wonderful people (emoji key):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore-start --> <!-- markdownlint-disable --> Marek Rozmus💻 📖 ⚠️ 💡 🤔 🚧 🎨 Adam Laycock🐛 Rathes Sachchithananthan🤔
<!-- markdownlint-restore --> <!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the all-contributors specification. Contributions of any kind welcome!