textarea-resize

Installation
SKILL.md

Files

This skill directory has the library in two versions. Copy one pair to the project, both files next to each other:

project copy
has TypeScript / bundler (vite, esbuild, tsc...) textareaResize.ts + addCss.ts
plain html / js, no build step textareaResize.js + addCss.js

Prefer the *.ts pair whenever the project can handle it - *.js files are generated from them (transpiled, not bundled), use them only when there is no build step.

addCss is the only dependency (import ... from "./addCss.js"). No css file, no npm packages.

Load

Import once, anywhere in the app (side effect import - it initialises itself on DOMContentLoaded or immediately):

With a bundler - import (works for the *.ts pair and for the *.js pair):

Installs
3
Repository
stopsopa/skills
First Seen
5 days ago