Try it out in Storybook.
Make a LEGO brick!
...<Brick shape=shapes'twoByFour' />
||The shape of the brick. A grid of true/false values to determine if the index is a space or filled.|
||The size of the brick: small, medium, large or xLarge.|
||Optional style param, useful for z-indexing and placing bricks on top of one another.|
||Style params to set on the brick, specific to the location of the brick on the page.|
||random||The color of the brick, chosen from
If you find any issues with this component, please report them!
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.