0.1.24 • Published 2 months ago

react-spinetic v0.1.24

Weekly downloads
-
License
-
Repository
github
Last release
2 months ago

Spinetic

Getting Started

Installation with npm

npm i react-spinetic

Installation with yarn

yarn add react-spinetic

Example Usage

  1. Import the styles in your main app.tsx file:
import "react-spinetic/styles.css";
  1. Import the Spinetic components wherever you want to use them:
import { Spinetic, SpineticItem } from "react-spinetic";
  1. Use the following example to understand how to use Spinetic:
function App() {
  const exampleItems = ['content-1', 'content-2', 'content-3', 'content-4', 'content-5'];

  return (
    <Spinetic config={{ autoRotate: true }}>
      {exampleItems.map((content, index) => (
        <SpineticItem key={index}>
          <div style={{ height: 200, width: 250, background: 'blue', margin: 10 }}>
            {content}
          </div>
        </SpineticItem>
      ))}
    </Spinetic>
  );
}

export default App;

Make sure to import the required styles, components, and configuration types. Then, use the Spinetic component and SpineticItem component to create a carousel. Customize the appearance and behavior of the carousel through the configuration options. Finally, map through your items and wrap them in SpineticItem components to display them within the carousel.

For more information, refer to the complete documentation and explore the carousel features in the playground by visiting the following link: Spinetic Documentation.

0.1.24

2 months ago

0.1.20

2 months ago

0.1.21

2 months ago

0.1.22

2 months ago

0.1.23

2 months ago

0.1.18

2 months ago

0.1.19

2 months ago

0.1.16

2 months ago

0.1.17

2 months ago

0.1.15

3 months ago

0.1.14

3 months ago

0.1.13

3 months ago

0.1.11

3 months ago

0.1.12

3 months ago

0.1.10

3 months ago

0.1.8

3 months ago

0.1.7

3 months ago

0.1.9

3 months ago

0.1.6

3 months ago

0.0.47

3 months ago

0.1.0

3 months ago

0.1.2

3 months ago

0.1.1

3 months ago

0.1.4

3 months ago

0.1.3

3 months ago

0.1.5

3 months ago

0.0.48

3 months ago

0.0.49

3 months ago

0.0.41

3 months ago

0.0.42

3 months ago

0.0.43

3 months ago

0.0.44

3 months ago

0.0.45

3 months ago

0.0.46

3 months ago

0.0.40

3 months ago

0.0.37

3 months ago

0.0.38

3 months ago

0.0.39

3 months ago

0.0.35

3 months ago

0.0.36

3 months ago

0.0.33

7 months ago

0.0.34

7 months ago

0.0.32

7 months ago

0.0.31

7 months ago

0.0.30

7 months ago

0.0.29

7 months ago

0.0.28

7 months ago

0.0.27

7 months ago

0.0.26

7 months ago

0.0.25

7 months ago

0.0.24

7 months ago

0.0.23

7 months ago

0.0.22

7 months ago

0.0.21

7 months ago

0.0.20

7 months ago

0.0.19

7 months ago

0.0.18

7 months ago

0.0.17

7 months ago

0.0.16

7 months ago

0.0.15

7 months ago

0.0.14

7 months ago

0.0.13

7 months ago

0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago