0.3.0 • Published 8 years ago

see-common-components v0.3.0

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

common-components

all used in React environment

usage

npm install see-common-components or yarn add see-common-components

Notify Component

  import { newNotification } from 'see-common-components'
  const notify = () => newNotification(message, color?='#5CB85C', duration?=2000);
  notify();

or

  import {notify, notifyFailed} from 'see-common-components'
  notify(message, duration?)

ListPagination Component

the required onJumpPage function receive currentPage param

optional props:

  • pages: total pages
  • color
  • selectedColor
  • bgColor
  • selectedBgColor
  import { ListPagination } from 'see-common-components'
  const ReactComponent = () =>
    <div>
      {list or tables}
      <ListPagination onJumpPage={(page) => console.log(page)}>
    </div>

NotFoundPage

this container components only used in React Router

  import { NotFound } from 'see-common-components'

  <Switch>
    {...}
    <Route path='*' component={NotFound} />
  </Switch>
`
0.3.0

8 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago