More components in Pro
Galleries, cards and interactive pieces for pages that need more than the basics.
items | GlassIconsItem[] | [] | Icons to show. Each item takes an icon, a label and a color, plus an optional href, target, onClick, id and className. Color is a preset name (blue, purple, red, indigo, orange, green, teal, pink, graphite, silver) or any CSS color or gradient. |
size | 82 | Width and height of each icon in px. | |
gap | 66 | Space between the icons in px. | |
columns | 3 | Icons per row. They wrap to fewer columns when there is not enough room. | |
roundness | 0.6 | Corner rounding, from 0 for square to 1 for a circle. | |
refraction | 0.8 | How strongly the glass bends what is behind it around its edge. Works in Chromium browsers. | |
bevel | 0.6 | Width of the curved glass edge, from 0 to 1. | |
dispersion | Rainbow fringing where the edge bends the light, from 0 to 1. | ||
frost | 0.2 | How much the glass blurs what is behind it, from 0 to 1. | |
shine | 0.85 | Strength of the light catching the glass edge, from 0 to 1. | |
tint | '#dfdfdf' | Color of the glass. | |
tintOpacity | 0.2 | How strongly the tint colors the glass, from 0 to 1. | |
iconColor | Color of the icons on the glass. Defaults to white, or near black on clear glass in the light theme. | ||
plate | 'tilt' | 'offset' | 'circle' | 'none' | 'tilt' | Colored shape behind the glass: a tilted card, a shifted card, a disc or nothing for clear glass. |
tilt | 30 | Angle of the tilted card in degrees. | |
spread | 0.5 | How far the shifted card or disc peeks out from behind the glass, from 0 to 1. | |
hover | 'lift' | 'float' | 'press' | 'none' | 'press' | Hover animation. Lift raises the glass and swings the card, float raises the glass and press pushes it in. |
parallax | How far the card behind the glass drifts with the pointer, from 0 to 1. | ||
labels | 'hover' | 'always' | 'none' | 'hover' | When the labels under the icons are shown. |
| Plays an entrance the first time the icons scroll into view: the glass settles and the cards swing out. | |||
theme | 'dark' | 'light' | 'dark' | Color scheme of the labels and glass edges. |
| Extra class names for the container. | |||
| Inline styles for the container. |
itemsGlassIconsItem[]Icons to show. Each item takes an icon, a label and a color, plus an optional href, target, onClick, id and className. Color is a preset name (blue, purple, red, indigo, orange, green, teal, pink, graphite, silver) or any CSS color or gradient.
[]sizenumberWidth and height of each icon in px.
82gapnumberSpace between the icons in px.
66columnsnumberIcons per row. They wrap to fewer columns when there is not enough room.
3roundnessnumberCorner rounding, from 0 for square to 1 for a circle.
0.6refractionnumberHow strongly the glass bends what is behind it around its edge. Works in Chromium browsers.
0.8bevelnumberWidth of the curved glass edge, from 0 to 1.
0.6dispersionnumberRainbow fringing where the edge bends the light, from 0 to 1.
frostnumberHow much the glass blurs what is behind it, from 0 to 1.
0.2shinenumberStrength of the light catching the glass edge, from 0 to 1.
0.85tintstringColor of the glass.
'#dfdfdf'tintOpacitynumberHow strongly the tint colors the glass, from 0 to 1.
0.2iconColorstringColor of the icons on the glass. Defaults to white, or near black on clear glass in the light theme.
plate'tilt' | 'offset' | 'circle' | 'none'Colored shape behind the glass: a tilted card, a shifted card, a disc or nothing for clear glass.
'tilt'tiltnumberAngle of the tilted card in degrees.
30spreadnumberHow far the shifted card or disc peeks out from behind the glass, from 0 to 1.
0.5hover'lift' | 'float' | 'press' | 'none'Hover animation. Lift raises the glass and swings the card, float raises the glass and press pushes it in.
'press'parallaxnumberHow far the card behind the glass drifts with the pointer, from 0 to 1.
labels'hover' | 'always' | 'none'When the labels under the icons are shown.
'hover'introbooleanPlays an entrance the first time the icons scroll into view: the glass settles and the cards swing out.
theme'dark' | 'light'Color scheme of the labels and glass edges.
'dark'Extra class names for the container.
Inline styles for the container.



