{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "dependencies": [
    "@base-ui/react@1.8.0"
  ],
  "description": "A multi-line text input that keeps the field styling of LiquidTextField.",
  "docs": "Two steps after installing: import the copied stylesheet once at your app entry — it lands at `styles/liquefy-ui.css` — or `@import` it from your global CSS *before* `tailwindcss`, so Tailwind utilities keep winning over component styles. Then wrap the tree in `<LiquefyProvider>`, which is where every component reads its tokens from. Every copied file already carries its own 'use client' directive. Full documentation: https://liquefy-ui.com/#/docs/installation",
  "files": [
    {
      "content": "'use client'\n\nimport { Field } from '@base-ui/react/field'\nimport { forwardRef, type ChangeEvent, type TextareaHTMLAttributes } from 'react'\nimport { useLiquefyConfig } from '@/lib/provider'\nimport { useLiquidStyles, type LiquidStyleProps } from '@/lib/styles-prop'\nimport { useLiquidGlass } from '@/hooks/use-liquid-glass'\n\nexport type LiquidTextAreaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & LiquidStyleProps & {\n  hint?: string\n  label?: string\n}\n\nexport const LiquidTextArea = forwardRef<HTMLTextAreaElement, LiquidTextAreaProps>(({\n  className,\n  hint,\n  label,\n  onChange,\n  rows = 4,\n  style,\n  styles,\n  ...props\n}, ref) => {\n  const config = useLiquefyConfig()\n  const [controlRef, canvasRef, pulse] = useLiquidGlass<HTMLSpanElement>(undefined, {\n    bounce: 0.02,\n    glow: config.glow,\n    intensity: config.intensity,\n    lens: config.lens && config.transparency,\n    lensStrength: config.refraction,\n    motion: config.motion,\n    ripple: config.ripple,\n    shimmer: config.shimmer,\n    sparkle: config.sparkle,\n    tilt: 0,\n    tint: config.tint,\n    webgl: config.webgl,\n    wobbliness: config.wobbliness * 0.5,\n  })\n\n  const handleChange = (event: ChangeEvent<HTMLTextAreaElement>) => {\n    // Tiny purun on every keystroke so the control feels alive as you type.\n    pulse(0.35)\n    onChange?.(event)\n  }\n  // The field is the layout box, so it owns className, style and styles alike.\n  const root = useLiquidStyles(['lq-text-field', 'lq-textarea'], { className, style, styles })\n\n  return (\n    <Field.Root className={root.className} style={root.style}>\n      {label && <Field.Label className=\"lq-control-label\">{label}</Field.Label>}\n      <span className=\"lq-text-field__control lq-textarea__control\" ref={controlRef}>\n        {config.webgl && <canvas aria-hidden=\"true\" className=\"lq-surface__shader\" ref={canvasRef} />}\n        {/* Field.Control renders an input unless it is handed something else to\n            render, and the label and hint wiring follows whatever it renders. */}\n        {/* Field.Control is typed for the input it renders by default. Handing\n            it a textarea to render is supported; describing that in the types\n            is not, so the whole set of textarea props is cast across at once. */}\n        <Field.Control\n          render={<textarea />}\n          {...({ onChange: handleChange, ref, rows, ...props } as unknown as Field.Control.Props)}\n        />\n      </span>\n      {hint && <Field.Description className=\"lq-control-hint\">{hint}</Field.Description>}\n    </Field.Root>\n  )\n})\n\nLiquidTextArea.displayName = 'LiquidTextArea'\n",
      "path": "registry/liquid-textarea.tsx",
      "type": "registry:ui"
    }
  ],
  "name": "liquid-textarea",
  "registryDependencies": [
    "https://liquefy-ui.com/r/liquefy-ui.json",
    "https://liquefy-ui.com/r/provider.json",
    "https://liquefy-ui.com/r/styles-prop.json",
    "https://liquefy-ui.com/r/use-liquid-glass.json"
  ],
  "title": "LiquidTextArea",
  "type": "registry:ui"
}
