1.0.3 • Published 3 years ago

smooth-card v1.0.3

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

smooth-card

showing smooth cards

NPM JavaScript Style Guide

Install

npm install --save smooth-card

Usage

import React from 'react'

import SmoothCard from 'smooth-card'
import 'smooth-card/dist/index.css'

const size = { height: 400, width: 200 }
const data = [
  {
    id: 1,
    url: `https://picsum.photos/${size.height}/${size.width}?t=${
      Date.now() + 1
    }`,
    content: 'follow'
  },
  {
    id: 2,
    url: `https://picsum.photos/${size.height}/${size.width}?t=${
      Date.now() + 2
    }`,
    content: 'alithecodeguy'
  },
  {
    id: 3,
    url: `https://picsum.photos/${size.height}/${size.width}?t=${
      Date.now() + 3
    }`,
    content: 'channel'
  },
  {
    id: 4,
    url: `https://picsum.photos/${size.height}/${size.width}?t=${
      Date.now() + 4
    }`,
    content: 'on'
  },
  {
    id: 5,
    url: `https://picsum.photos/${size.height}/${size.width}?t=${
      Date.now() + 5
    }`,
    content: 'Telegram and Youtube'
  }
]

const App = () => {
  return <SmoothCard data={data} size={size} />
}

export default App

inspiration

Traversy Media

License

MIT © alithecodeguy

1.0.2

3 years ago

1.0.1

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago