Glass Bricks

Structured geometric grid with glass morphism effect and animated background.

Main Features of Glass Bricks

How to Use Glass Bricks in Next.js

Installation Guide for Glass Bricks

Props

Customize the component with these props

PropertyTypeDefaultDescription
backgroundColor
string#111111Background color
gradientFrom
string#6366f1Gradient start color
gradientVia
string#a855f7Gradient middle color
gradientTo
string#ec4899Gradient end color
gradientSize
string80vhGradient size
gradientBlur
string100pxGradient blur
gradientTranslateX
string[]['-50%', '-30%', '-70%', '-50%']Gradient X translation animation
gradientTranslateY
string[]['-50%', '-70%', '-30%', '-50%']Gradient Y translation animation
gradientRotate
number[][0, 90, 180, 360]Gradient rotation animation
gradientDuration
number20Gradient animation duration
gridCols
number6Grid columns
gridColsMd
number12Grid columns on medium screens
gridRows
number6Grid rows
gridRowsMd
number8Grid rows on medium screens
gap
string0.25remGrid gap
padding
string1remGrid padding
brickBgColor
stringrgba(255, 255, 255, 0.05)Brick background color
brickBorderColor
stringrgba(255, 255, 255, 0.05)Brick border color
brickBlur
string2xlBrick blur
brickCount
number96Number of bricks
text
stringMatrixText label
textColor
stringrgba(255, 255, 255, 0.9)Text color
className
stringAdditional CSS classes

When to Use

Perfect for technical landing pages, dashboard backgrounds, and Next.js sites that want a structured, geometric glassmorphism look. Use this React component for a grid of 'bricks' that refract an animated background for a layered, depth-heavy aesthetic.

Best Practices

Maintain scalable component architecture by using this as a secondary background layer. Follow React best practices by setting subtle border colors for the bricks. Optimize for performance by adjusting the `gridCols` based on screen width.

Why This Component Matters in Modern UI Development

Geometric glass patterns provide a sense of order and high-tech sophistication. This production-ready component givesคุณ a robust tool for building complex, glass-based UI architecture that feels solid and modern.

Frequently Asked Questions

QAre the bricks interactive?

The bricks are static by default to provide a solid background structure, but they can be easily extended with hover-based lift or glow effects.

QCan I change the brick size?

Yes, the `gridCols` and `gridRows` props allow you to control the density and aspect ratio of the bricks.

QHow is the background animated?

A multi-layered gradient moves behind the bricks, creating a dynamic refraction effect as the colors shift through the glass.

Glass Bricks - React Blur & Glassmorphism Effects | Uilora