Tetris

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

Install using CLI

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://inspira-ui.com/r/tetris.json"

Install Manually

Install the dependencies

npm
pnpm
bun
yarn
npm install theme-colors

Copy and paste the following code

Tetris.vue

Example

Without Blur or overlay

API

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

Credits