nowfound

Alternatives

Products that do what React hooks that predict text height before render, using font metrics does

I built @pretext-studio/core to solve a specific annoyance: the browser won't tell you how tall a text block is until after it renders. This forces you into either a render-then-measure cycle (which causes layout shift) or hacks like max-height: 9999px for accordion animations (which makes easing look wrong because the animation runs over 9999px, not the actual content height). The library wraps @chenglou/pretext, a pure-JS text layout engine that replicates the browser's line-breaking. algorithm using font metrics loaded once via the Font Metrics API. From there, computing height…

  1. 1ZJ
  2. 2

    Learn to prototype and build components using React

    2018

  3. 3

    A guide to using React for designers

    2019

  4. 4

    UI elements in ready-to-use components for React

    2017

  5. 5

    Framer’s React animation library just got an upgrade

    2020

  6. 6

    Animated typing without the headaches

    2019

  7. 7

    Free UI Kit built with React, Bootstrap 4 & Material Design

    2017

  8. 8
    Tamagui190

    UI that compiles away for React Native & Web

    2022

  9. 9
    Measure99

    Measure typographic line lengths right from the page

    2017

  10. 10

    Fully coded UI sections with designer file included

    2024

  11. 11

    Make faster design decisions with greater confidence

    2014

  12. 12FP

    2018 · play.typedetail.com

  13. 13

    Compile UI Mockups to React Code

    2018

  14. 14

    React and Next.js snippets with TypeScript

    2022

  15. 15
    Stitches135

    The modern CSS-in-JS library with near-zero runtime.

    2020

  16. 16TR
  17. 17RI
  18. 18RH
  19. 19RR
  20. 20A4

    Hi everyone! We’re Avishay, Or, and Michal, co-founders of Anima (www.animaapp.com). Anima converts design (Figma/Sketch/XD) into code automatically. Up until today, we only produced HTML/JS/CSS. With our latest release, we can now also generate developer-friendly React code. We’re here to replace image-based handoff, which involves a lot of grunt work for the engineers who have to translate all those images into code that does the same thing. For designers, the pain we solve is the ping-pong, and their vision getting lost in translation. The bottom line is that teams can…

    2020

  21. 21RR
  22. 22PF

    http://app.programmingfonts.org I've spent some time collecting monospace programming fonts, particularly those that are free to use. (Monospace because you can program with any font and you've got to draw the line somewhere). Usually I include some background info and basic stats in a blog post, and add it to a test drive "app". I've gone through some iterations here, and currently the backbone is a JSON data set (https://github.com/braver/programmingfonts/blob/gh-pages/fon...). I've been wondering what further to include here, e.g. glyph counts,…

    2018

  23. 23IB

    Hey HN, I built a tiny zero DOM layout engine for vector graphics and custom renderers to resolves nested rows/cols/grids into exact `{x, y, w, h}` boxes, with text measurement, overflow signals, and collision separation. This is to help make SVG, PDF, Canvas responsive. Feedback welcome from anyone building canvas/SVG diagrams, dashboards, node editors, or diagram tools.

    Jul 2026 · github.com

  24. 24IM

    2018 · github.com

Ranked by how close each launch is in meaning, then by votes. Refine with a description →