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

@phila/phila-ui-text-area

v1.0.0-beta.3

Published

A textarea input component for Phila UI.

Readme

TextArea Component

Status: Stable

A multi-line text input with an optional label, supporting text, error messaging, and a character-limit counter. Supports both v-model (controlled) and uncontrolled use.

Features

  • 🎨 Customizable label, placeholder, and supporting text
  • 🔢 Built-in character-limit counter, on by default (500, matching the Phila 311 design) — override the limit or turn it off entirely
  • 📏 Dynamic error handling with customizable messages
  • ♿ Accessibility features: focus states, disabled state

Installation

pnpm add @phila/phila-ui-text-area @phila/phila-ui-core
# or
npm install @phila/phila-ui-text-area @phila/phila-ui-core

Import core styles in your main entry file (e.g., main.js|ts):

import "@phila/phila-ui-core/styles/template-light.css";

Usage

<script setup lang="ts">
import { ref } from "vue";
import { TextArea } from "@phila/phila-ui-text-area";

const comment = ref("");
</script>

<template>
  <TextArea v-model="comment" label="Add a comment (optional)" placeholder="Enter comment here..." />
</template>

Character limit

maxLength defaults to 500 — the field enforces it (native maxlength) and shows a live x/500 characters counter without any extra props. Pass a different number for a different limit, or null to turn the counter off entirely:

<TextArea v-model="comment" :max-length="140" />
<TextArea v-model="comment" :max-length="null" />

Props

| Prop | Type | Default | Description | | ---------------- | -------------------- | -------------- | ---------------------------------------------------------------------------------------------------------- | | modelValue | string | undefined | Bound value (v-model). Works uncontrolled too — omit it and the field manages its own value internally. | | label | string | "" | Label text for the field | | placeholder | string | "" | Placeholder text when the field is empty | | supportingText | string | "" | Helper text shown below the label, above the field | | error | string \| string[] | [] | Error message(s). Only the first is displayed, even if an array with several entries is passed. | | maxLength | number \| null | 500 | Character limit — shows a live counter and sets the native maxlength. null hides the counter. | | rows | number | 4 | Number of visible text rows | | id | string | auto-generated | ID for the textarea element | | className | string | "" | Additional CSS classes | | disabled | boolean | false | Not a declared prop — passed through as a native HTML attribute and detected via useAttrs() for styling. | | required | boolean | false | Same as disabled — a native attribute, not a declared prop. |

Slots

| Slot | Description | | -------------- | --------------------------------------------------------------- | | before-input | Extra content between the supporting text and the field itself. |

Events

| Event | Payload | Description | | ------------------- | -------- | -------------------------------- | | update:modelValue | string | Emitted on input, for v-model. |

Exposed

Access via a template ref on TextArea:

| Property | Type | Description | | ------------- | ---------------------------------- | ------------------------------------------- | | textareaRef | Ref<HTMLTextAreaElement \| null> | The underlying native <textarea> element. |

Development

Install Dependencies

pnpm install

Run Demo

pnpm dev

Run lint

pnpm lint

Create Production Build

pnpm build

Test locally in your development environment

npm pack
cp ./dist/*.tgz ~/path/to/your/local/npm/repo
cd ~/path/to/your/local/npm/repo
npm install *.tgz

Publishing to NPM

Follow the release instructions using changesets.

License

MIT