0.0.7 • Published 7 years ago
@c8s/slider v0.0.7
@c8s/slider
Usage
/**
 * As to prepare of using the `Slider`
 * 
 * ```bash
 * yarn add @c8s/slider @c8s/theme react @types/react styled-components @types/styled-components
 * ```
 */
import Slider from '@c8s/slider';
import {Theme, theme} from '@c8s/theme';Example
() => (
  <Theme theme={theme}>
    {/* ... */}
      <Slider
        items={[
          {
            image: 'https://via.placeholder.com/600x480',
            text: 'Lorem ipsum dolor1',
          },
          {
            image: 'https://via.placeholder.com/500x480',
            text: 'Lorem ipsum dolor2',
          },
          {
            image: 'https://via.placeholder.com/700x480',
            text: 'Lorem ipsum dolor3',
          },
        ]}
      /> 
    {/* ... */}
  </Theme>
);Contributors
Thanks goes to these wonderful people (emoji key):
| 純📖 | Aki-Japan📖 | 
|---|
This project follows the all-contributors specification. Contributions of any kind welcome!