Code Monkey home page Code Monkey logo

spinetic's Introduction

Spinetic

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.

spinetic's People

Contributors

luiz-sant0s avatar timfts avatar julianaesteves avatar

Stargazers

Airton Vancin Junior avatar Carlos Eduardo dos Santos avatar Agnaldo Junior avatar Eduardo Serafini avatar  avatar Marcus Vinícius Pacheco avatar Thiago Ripardo avatar Jamerson Vasconcelos Santana avatar Mateus Miguel avatar  avatar Loadfms avatar Décio Mattos avatar Rodrigo Queiroz avatar Lucas Rodrigues avatar Caique Santos avatar  avatar Gisele de Araujo Flor avatar Tiago Vaz avatar Kennedy Santos avatar

Watchers

Airton Vancin Junior avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.