Components / PaperTextarea

Forms

PaperTextarea

Long-form input styled like a ruled notepad.

↗ longer thoughts deserve better surfaces.

Preview

import * as React from 'react'
import { cva, type VariantProps } from 'class-variance-authority'
import { cn } from '@/lib/utils'

const paperTextareaVariants = cva(
  [

Installation

Copy this file into your project, export its barrel, and then add it to the master UI index.

  1. Step 1.Create this file:
    components/ui/paperTextarea/paperTextarea.tsx
  2. Step 2.Create the barrel:
    components/ui/paperTextarea/index.ts
  3. Step 3.Add this export in components/ui/index.ts:
    export * from './paperTextarea'

Variants

Default

Lined

Props

PropTypeDefaultDescription
variant'default' | 'lined'defaultTextarea background treatment.
placeholderstringundefinedOptional handwritten-style guidance.
rowsnumberundefinedInitial rendered row count.

Examples

Issue notes

Useful for triage comments with full context.

<PaperTextarea placeholder="What happened?" />

Release notes draft

Lined variant helps visual scanning for long text.

<PaperTextarea variant="lined" />