@mirumshopper/react-simpleset

0.0.5 • Public • Published

@mirumshopper/react-simpleset

Common set component for containing other components.

Installation

Using npm:

$ npm i --save @mirumshopper/react-simpleset

Usage

// using ES6 modules
import SimpleSet from '@mirumshopper/react-simpleset'

Using Child Elements

It will pick up child elements as the children, if passed:

<SimpleSet>
    <img src='image1.jpg' />
    <img src='image2.jpg' />
    <img src='image3.jpg' />
</PagedSet>

Using the Set Attribute

The set attribute can be passed an array of objects containing an element and properties to pass to that element:

<SimpleSet
    set={[
        {element: 'img', src: 'image1.jpg'},
        {element: 'img', src: 'image2.jpg'},
        {element: 'img', src: 'image3.jpg'}
    ]}
/>

Demo

Demos are available under demo/index.html

JS Docs

Documents are available under jsdocs/index.html

License

(c) Copyright 2018 Mirum, all rights reserved.

This code is NOT licensed for use other than the commercial interests of Mirum.

Version History

  • 0.0.5 - Pushing onEvent events up.
  • 0.0.4 - Added onClick events.
  • 0.0.3 - Added README.md, modified how handleChildEvent works.

Readme

Keywords

none

Package Sidebar

Install

npm i @mirumshopper/react-simpleset

Weekly Downloads

0

Version

0.0.5

License

LicenseRef-LICENSE

Unpacked Size

3.86 MB

Total Files

67

Last publish

Collaborators

  • russ-dahlberg-mirum
  • nicholas-davison-mirum