Tetris

Tetris background component, you can even click on a block to eliminate it.

API

Prop NameTypeDefaultDescription
classstring""Additional class names to style the component.
basenumber10How many blocks do you have in a row.
square-colorstring""Square color.

Component Code

You can copy and paste the following code to create these components:

Tetris.vue

Credits