npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@arminmajerie/solid-textarea-autosize

v1.0.0

Published

Autosizing textarea component for Solid with modern package exports and TypeScript declarations.

Downloads

269

Readme

@arminmajerie/solid-textarea-autosize

npm version license: MIT

Autosizing <textarea> component for Solid. The textarea grows and shrinks with its content while keeping the normal textarea API, including value, placeholder, disabled, ref, onInput, and styling props.

This is a maintained fork of the MIT-licensed solid-textarea-autosize, which was originally ported from react-textarea-autosize. The original copyright and MIT license are preserved in this repository.

Install

npm install @arminmajerie/solid-textarea-autosize

Use the scoped package name in new code:

import TextareaAutosize from "@arminmajerie/solid-textarea-autosize";

If you are migrating an app that already imports solid-textarea-autosize, npm aliases can keep that import path:

npm install solid-textarea-autosize@npm:@arminmajerie/solid-textarea-autosize
import TextareaAutosize from "@arminmajerie/solid-textarea-autosize";

Usage

import { createSignal } from "solid-js";
import { render } from "solid-js/web";
import TextareaAutosize from "@arminmajerie/solid-textarea-autosize";

function App() {
  const [value, setValue] = createSignal("");

  return (
    <TextareaAutosize
      minRows={2}
      maxRows={8}
      value={value()}
      placeholder="Write something..."
      onInput={(event) => setValue(event.currentTarget.value)}
    />
  );
}

render(() => <App />, document.getElementById("root")!);

Props

TextareaAutosize accepts normal Solid textarea attributes plus these autosize-specific props.

| Prop | Type | Description | | --- | --- | --- | | minRows | number | Minimum visible row count. | | maxRows | number | Maximum visible row count before the textarea scrolls. | | onHeightChange | (height: number, meta: { rowHeight: number }) => void | Called when the measured textarea height changes. | | cacheMeasurements | boolean | Reuse sizing measurements between height calculations. Defaults to false. |

The component controls height, min-height, and max-height internally so it can resize correctly.

Refs

The component forwards its ref to the underlying HTMLTextAreaElement.

let textarea!: HTMLTextAreaElement;

<TextareaAutosize ref={(element) => (textarea = element)} />;

textarea.focus();

Compatibility Notes

This fork keeps compatibility with older call sites that pass label or inputProps, while also exposing proper package exports and TypeScript declaration resolution for modern TypeScript and bundlers.

The package publishes:

  • ESM: ./dist/esm/index.js
  • CommonJS: ./dist/cjs/index.js
  • Solid source condition: ./dist/source/index.jsx
  • Type declarations: ./dist/types/index.d.ts

Development

npm install
npm run typecheck
npm run build
npm run pack:check

npm run pack:check shows exactly which files will be included in the npm package.

License

MIT. This fork preserves the upstream MIT license and attribution.