@lynx-js/lynx-ui-swipe-action
v3.143.0
Published
A SwipeAction component for ReactLynx. It provides swipeable list item primitives via main-thread gestures.
Downloads
22,321
Readme
@lynx-js/lynx-ui-swipe-action
A SwipeAction component for ReactLynx. It provides swipeable list item primitives via main-thread gestures.
Installation
We strongly recommend installing and using this component through the main @lynx-js/lynx-ui package:
# pnpm (recommended)
pnpm add @lynx-js/lynx-ui
# npm
npm install @lynx-js/lynx-ui
# yarn
yarn add @lynx-js/lynx-ui(If necessary, you can still install the standalone package via pnpm add @lynx-js/lynx-ui-swipe-action)
Usage
The lynx-ui-swipe-action follows a headless composition pattern.
Component Structure
SwipeAction exposes displayArea and actionArea as structural slots.
<SwipeAction
displayArea={displayArea}
actionArea={actionArea}
/>SwipeAction: The main swipe action container.
About @lynx-js/lynx-ui
This component is part of @lynx-js/lynx-ui, a headless UI library officially maintained by the Lynx team, provided as a reference for building flexible, universal, and high-performance ReactLynx components.
License
lynx-ui is Apache License 2.0 licensed.
