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

@asnewyla/textarea

v0.2.0

Published

Styled multi-line text input (textarea) with label, validation error display, and accessibility

Readme

@asnewyla/textarea

Styled multi-line text input built on @asnewyla/unstyled-textarea. Label association, inline validation error, and full keyboard/focus accessibility.

Install

npm install @asnewyla/textarea

Import the stylesheet once, anywhere in your app:

import '@asnewyla/textarea/styles.css';

Usage

import { Textarea } from '@asnewyla/textarea';

<Textarea label="Bio" placeholder="Tell us about yourself" />

<Textarea label="Bio" error="Bio is required" />

// Controlled
<Textarea
  label="Bio"
  value={bio}
  onChange={(e) => setBio(e.target.value)}
/>

// Any native textarea attribute passes straight through
<Textarea label="Cover letter" rows={10} />

Props

Everything @asnewyla/unstyled-textarea accepts, plus:

| Prop | Type | Default | |---|---|---| | label | string (required) | — | | error | string | — |

error doubles as the invalid-state flag — there's no separate invalid prop, same convention as @asnewyla/input/@asnewyla/checkbox/ @asnewyla/switch. Setting error sets aria-invalid/data-invalid on the field and links it via aria-describedby to the rendered error message.

Resizing is vertical-only (resize: vertical), not the browser's default both — letting a stacked, block-level field grow wider than its container breaks whatever layout it sits in.

Theming

Override the CSS custom properties — defaults adapt automatically to prefers-color-scheme via @asnewyla/tokens:

:root {
  --xd-color-primary: #0d9488;
  --xd-color-border: #cbd5e1;
  --xd-color-destructive: #dc2626;
}

License

MIT