{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "textarea",
  "title": "Textarea",
  "description": "",
  "dependencies": [],
  "registryDependencies": [
    "@kit-native/lib-utils",
    "@kit-native/text"
  ],
  "files": [
    {
      "path": "components/ui/textarea.tsx",
      "content": "import { useFontStyle } from '@/components/ui/text';\nimport { cn } from '@/lib/utils';\nimport { Platform, TextInput } from 'react-native';\n\nfunction Textarea({\n  className,\n  multiline = true,\n  numberOfLines = Platform.select({ web: 2, native: 8 }), // On web, numberOfLines also determines initial height. On native, it determines the maximum height.\n  placeholderClassName,\n  ...props\n}: React.ComponentProps<typeof TextInput> & React.RefAttributes<TextInput>) {\n  // The theme's body font, like Text (a custom font is one family per weight on native).\n  const font = useFontStyle(className ?? '');\n  return (\n    <TextInput\n      className={cn(\n        'text-foreground border-input dark:bg-input/30 flex min-h-24 w-full flex-row rounded-md border bg-transparent px-3 py-2 text-base md:text-sm',\n        Platform.select({\n          web: 'placeholder:text-muted-foreground placeholder-shown:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive field-sizing-content resize-y outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed',\n        }),\n        props.editable === false && 'opacity-50',\n        className\n      )}\n      placeholderClassName={cn('text-muted-foreground', placeholderClassName)}\n      multiline={multiline}\n      numberOfLines={numberOfLines}\n      textAlignVertical=\"top\"\n      aria-disabled={props.editable === false || undefined}\n      {...props}\n      style={font ? [font, props.style] : props.style}\n    />\n  );\n}\n\nexport { Textarea };\n",
      "type": "registry:ui",
      "target": "components/ui/textarea.tsx"
    }
  ],
  "meta": {
    "exports": [
      "Textarea"
    ],
    "api": "<Textarea placeholder numberOfLines? />"
  },
  "docs": "Run `npx expo install --fix` afterwards so Expo SDK packages match your SDK. Needs the kit theme (`@kit-native/theme`) and `KitThemeProvider` from `@kit-native/lib-theme-context` at the root.",
  "categories": [
    "inputs"
  ],
  "type": "registry:ui"
}