ns-ui / loud
Wraps any element in a thick tube of molten chrome — a WebGL shader fakes a 3D torus cross-section across the band width (not a flat gradient), lights it with a rotating banded environment reflection so bright/dark stripes sweep around the collar, and perturbs the band's own boundary with noise so it wobbles like liquid metal instead of holding a fixed shape. Hovering biases a specular hit toward the cursor; pressing bulges the metal outward and pools it toward the pointer; releasing sends a ripple once around the ring.
Use when wrapping an element in a thick liquid-metal collar with a real modelled cross-section and a rotating environment reflection, where the ring is a material object that bulges toward the pointer under press; pick border-electric-arc instead when the border should crackle as a live wire around a CTA and discharge on press, or surface-glass when the treatment belongs to the whole container rather than its edge.
Install
npx shadcn add https://design.helpmarq.com /r/border-chrome-ring.jsonns-ui / border-chrome-ring
Molten chrome wrapping a control — press it, the metal pools toward your cursor.
| Prop | Type | Default | Description |
|---|---|---|---|
| children | React.ReactNode | — | — |
| variant? | "pill" | "circle" | — | "pill" follows `radius`; "circle" forces a disc sized to the box. |
| radius? | number | — | Corner radius (css px) of the wrapped content, for variant="pill". |
| strength? | number | — | 0..1 overall intensity of the liquid band. |
| paused? | boolean | — | Freezes the shader on its current frame without unmounting the canvas. |
| ringWidth? | number | — | Width of the liquid band in CSS px. |
| className? | string | — | — |
| style? | React.CSSProperties | — | — |