1.0.1 • Published 4 years ago

react-responsive-see-more v1.0.1

Weekly downloads
6
License
ISC
Repository
github
Last release
4 years ago

react-responsive-see-more

A simple React component that renders a list (array) of components and show them responsively in one row.

React See More example

How to use

Run:

npm i react-responsive-see-more

Usage:

import SeeMore from 'react-responsive-see-more'
...
...
<SeeMore
    items={renderItems()}
    itemWidth={170}
    seeMoreButtonClassName="seeMoreButtonClassName"
    seeMoreURL='seeMoreURL'
    seeMoreButtonnText='seeMoreButtonnText'
/>

Props

PropTypeDescription
itemsReact.ReactNode[]Array of components that will be rendered
itemWidthnumberThe width of one item in the components list. This is for responsive calculations
seeMoreURLstring (Optional)A URL for the see more button. If you wont pass this prop, the button wont render
classNamestring (Optional)Class name for the package wrapper
seeMoreButtonClassNamestring (Optional)Class name for the see more button wrapper
seeMoreButtonTextstring (Optional)Text for the see more button

License

react-responsive-see-more is released under MIT license. You are free to use, modify and distribute this software, as long as the copyright header is left intact.

1.0.1

4 years ago

1.0.0

4 years ago