3.0.0 • Published 2 years ago

@focusinlab/tile v3.0.0

Weekly downloads
18
License
MIT
Repository
github
Last release
2 years ago

tile

Tile customizable basic component

NPM JavaScript Style Guide

Install

npm install --save @focusinlab/tile

Props:

AttributeRequiredTypeDefault
childrenYesReact Elementstring
asNoStringdiv
ratioNo"cube","cubeDouble", "cubeFull", "rectangle""cube"

Usage

const BlueTile = () => {
  return (
    <Tile
      ratio='cube'
      data-test-id="my-blue-tile"
    >
      <label className="foo">click me</label>
    </Tile>
  )
}

Creating an "anchor" box

const ClickableTile = () => {
  return (
    <Tile
      ratio='cube'
      type='a'
      onClick={clickHandler}
      data-test-id="my-clickable-tile"
    >
      <label className="foo">click me</label>
    </Tile>
  )
}

License

MIT © focus-in-lab

3.0.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

4 years ago