MCPcopy Index your code
hub / github.com/LeaVerou/stretchy

github.com/LeaVerou/stretchy @v2.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.1 ↗ · + Follow
9 symbols 20 edges 5 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
# Stretchy Form element autosizing, the way it should be!
# Features - **Handles multiple types of form controls** Textareas? Inputs? Select menus? You name it! - **Tiny footprint** [Less than 1.5KB](https://bundlephobia.com/package/stretchy) minified and gzipped! - **Automatically accounts for newly added controls** via mutation observers - **Restrict form controls by a selector** …or don’t and autosize all your form controls! - **Completely standalone** no jQuery or other dependencies - **Plays well with existing HTML/CSS** Follows placeholders, styling, `min/max-width/height` constraints, transitions - **No JS knowledge required** Everything can be configured just via HTML! - **[Works in all modern browsers](#browser-support)** ([v1 even works in old browsers](#v1-browser-support-notes)) - **Written in ESM** Available in ESM, CJS, and good ol' globals - **Works in Shadow DOM** Use it in your web components! # Usage ## Good ol’ `

Core symbols most depended-on inside this repo

bundle
called by 6
rollup.config.js
init
called by 3
src/stretchy.js
$$
called by 2
src/stretchy.js
resize
called by 2
src/stretchy.js
resizeAll
called by 2
src/stretchy.js
resizes
called by 1
src/stretchy.js
onchange
called by 0
src/stretchy.js

Shape

Function 9

Languages

TypeScript100%

Modules by API surface

src/stretchy.js6 symbols
stretchy.min.js2 symbols
rollup.config.js1 symbols

For agents

$ claude mcp add stretchy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact