@c8s/slider
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

@c8s/slider

github npm:version typescript license browserslist code style:prettier

Usage

/**
 * As to prepare of using the `Slider`
 * 
 * ```sh
 * 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!

Readme

Keywords

none

Package Sidebar

Install

npm i @c8s/slider

Weekly Downloads

7

Version

0.0.7

License

MIT

Unpacked Size

62.1 kB

Total Files

72

Last publish

Collaborators

  • akijpn
  • nju33