Skip to content

Glass Button

A liquid-glass button that refracts the background behind it.

Plan
Free · MIT
Dependencies
React only
Props
9 (8 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
childrenReactNode""Button text.
size"sm" | "md" | "lg""md"Button height: small, medium or large.
arrowbooleantrueShows an arrow after the text.
blurnumber1.2Blur of the background behind the glass, in px.
refractionnumber1Strength of the refraction at the edge (0 = light isn't bent).
tintstring"rgba(255,255,255,0.12)"Color of the glass tint.
colorstring"#fff"Text color.
scenebooleanfalseDraws an animated color scene behind it (to see it refract).
disabledbooleanfalseDisables the button.

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { GlassButton } from "furin-ui";

Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.

Dependencies

React
18 or later
Other libraries
none
License
MIT

Each file ships its own CSS: there's nothing else to install.

Keep exploring

  • A dark button with a glint that sweeps across it every so often and on hover, lighting up the fill, the border and the text at once.

    Buttons

  • Press and hold to confirm: a ring fills, the button shakes more and more, and it vibrates on completion. Works with mouse, touch or keyboard.

    Buttons

  • A polished metal button with a beveled edge and a reflection that follows the cursor.

    Buttons