0.1.5 • Published 8 months ago

react-legos v0.1.5

Weekly downloads
10
License
MIT
Repository
github
Last release
8 months ago

react-legos

npm version

Try it out in Storybook.

Make a LEGO brick!

import Brick, { shapes } from 'react-legos'

...

<Brick shape={shapes['twoByFour']} />

Props

PropDefaultDescription
shapeThe shape of the brick. A grid of true/false values to determine if the index is a space or filled.
sizemediumThe size of the brick: small, medium, or large.
styleOptional style param, useful for z-indexing and placing bricks on top of one another.
color#eeeThe color of the brick, Can use colors in lib/colors.js, which correspond to this list.
opacity1For making the brick transparent.
optimizetrueDisable to render all sides of bricks, including invisible ones.

Issues

If you find any issues with this component, please report them!

Note

LEGO and the LEGO logo are trademarks and/or copyrights of the LEGO Group. This is not at all affiliated with The LEGO Group, and was simply a project of mine using the LEGO name as a proprietary eponym.

0.1.5

8 months ago

0.1.4

2 years ago

0.1.3

3 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago