Auto-sizing form fields that know their height before render. Zero CLS. Zero flash.
Height is calculated in JS before the browser paints. No hidden divs, no scrollHeight.
Correct dimensions on first paint. No layout shift, ever.
Works in Chrome, Firefox, Safari. No dependency on CSS field-sizing.
Same API as native textarea/input/select. Just swap the component.
Uses scrollHeight measurement post-render. Watch for the 1-frame flash when lines wrap.
Uses @chenglou/pretext for pre-render layout. Height is known before paint.