1.0.2 • Published 3 years ago

tnp-comps v1.0.2

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

tnp-comps

Thành Nguyễn React components

NPM JavaScript Style Guide

Install

# npm
npm install --save tnp-comps

# yarn
yarn add tnp-comps

Usage

Layout

Fullscreen container with gray background

Props:

interface Props {
  children: React.ReactNode
}
<Layout>Your content here</Layout>

Card

Card with image cover on top

Props:

interface Props {
  cover: string // url
  caption: string // tag-like text above title
  title: string
  content: string
}
<Card
  cover='https://picsum.photos/400'
  caption='post'
  title='First NPM Package Released!'
  content='Built with ChakraUI and create-react-library'
/>

License

MIT © thanh-nguyen-95

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago