1.0.8 • Published 5 years ago

react-simple-intro v1.0.8

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

react-simple-intro

Demo

demo

Usage

import React, { Component } from 'react';
import Intro from 'react-simple-intro'

class App extends Component {
  state = {
    introActive: true
  }

  render() {
    const slides = [
      {
        title: 'Title 1',
        image: '/image1',
        content: 'Place some content here.',
        color: '#59bbc4'
      },
      {
        title: 'Title 2',
        image: '/image2',
        content: 'It can really be anything...',
        color: '#8a8dee'
      },
      {
        title: 'Title 3',
        image: '/image3',
        content: 'Even a really long text! Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
        color: '#6fc2b2'
      }
    ]
    return (
      <Intro slides={slides} active={this.state.introActive} onFinish={() => this.setState({ introActive: false })} />
    )
  }
}

export default App
1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago