ns-ui

Text Variable Weight

Letters morph variable-font weight by cursor proximity — pure typography interaction.

Use when letters continuously morph variable-font weight by cursor proximity — pure typography, no particles/canvas/color, no discrete reveal moment; use for an ambient, subtle hover-driven headline; pick text-ligature-melt or text-prism-split instead when the headline should visibly distort rather than only change weight, or time-ago-drift when the same variable-weight channel should encode a timestamp's age rather than cursor proximity.

Install

npx shadcn add https://design.helpmarq.com/r/text-variable-weight.json
  • text
  • typography
  • cursor
  • variable-font

ns-ui / text-variable-weight — move the cursor across

Props

PropTypeDefaultDescription
textstring
minWeight?number300
maxWeight?number800
sigma?number90gaussian falloff radius in px
className?string