Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@chayns-components/swipeable-wrapper

Package Overview
Dependencies
Maintainers
2
Versions
703
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chayns-components/swipeable-wrapper

A set of beautiful React components for developing your own applications with chayns.

Source
npmnpm
Version
5.0.0-beta.291
Version published
Weekly downloads
1.9K
65.97%
Maintainers
2
Weekly downloads
 
Created
Source

chayns-components

A set of beautiful React components for developing your own applications with chayns.

Installation

First you need to install the swipeable wrapper part of the chayns-components.

# NPM
npm install @chayns-components/swipeable-wrapper

# Yarn
yarn add @chayns-components/swipeable-wrapper

Information: Since the components have now been implemented with the styled-components library, the styles are delivered directly with the components. There is no need to load an extra stylesheet anymore.

Usage

You can use the components in your project as in the following example.

import { Icon } from '@chayns-components/icon';
import { SwipeableWrapper } from '@chayns-components/swipeable-wrapper';

<SwipeableWrapper
    leftActions={[
        {
            action: () => console.log('Delete action'),
            color: '#3B82F6',
            icon: <Icon icons={['fa fa-trash']} />,
            text: 'Delete',
        },
    ]}
    rightActions={
        [
            // Same structure as leftActions
        ]
    }
>
    <MyComponent />
</SwipeableWrapper>;

Keywords

chayns

FAQs

Package last updated on 16 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts