2.0.0 • Published 2 years ago

@dreamworld/dw-swipeable v2.0.0

Weekly downloads
24
License
ISC
Repository
github
Last release
2 years ago

dw-swipeable

A Material UI component to perform some action on swipe-left or swipe-right

Usage

  1. Import
import '@dreamworld/dw-swipeable';
  1. Use
<dw-swipeable 
  @action=${this._onAction}
  .leftAction="${{left: {name: 'DELETE', caption: 'Delete', icon: 'delete'}}", 
  .rightAction="${{name: 'DELETE', caption: 'Delete'} }" >
     <div>Content Here</div>
</dw-swipeable>

CSS Properties

NameDescription
--swipe-left-placeholder-colorText color of left action placeholder.
--swipe-left-placeholder-bg-colorBackground color of left action placeholder
--swipe-right-placeholder-colorText color of right action placeholder.
--swipe-right-placeholder-bg-colorBackground color of right action placeholder
--swipe-content-bg-colorBackground color of content