Window
Glass effect with highlights
Window
requires scroll-area
component to be installed.
Thickness
The Window component has a thickness
prop that can be used to set the thickness of the window.
None
Thinnest
Thinner
Thin
Normal
Thick
Thicker
Thickest
Highlights
You might wonder how the window is able to have a realistic glass effect with highlights.
Using css border
? Well, this method will only go so far. If you take a closer look at the window, you can
see the edges are softened and the highlights has a gradient effect.
This is achieved using a combination of generic css and css image-mask
to achieve the effect.
Then we use mask-composite
to combine the masks. (Similar to layering in Photoshop)
For example, the left top highlight is made with 6 different css gradients.
API
Prop | Type | Default |
---|---|---|
scroll | boolean | false |
thickness | GlassThickness | "normal" |
Last updated on