{
  "format": "shadcn-figma-stories/1",
  "scope": "Static native design variants and documented examples; not executable interaction tests.",
  "source": {
    "path": "provenance://source/.figma-pool%2Fshadcn.fig",
    "sha256": "ccbe95f20f501389a322d0f6de2c90ca79126a33355f1b31e2b1dcc7c8e2b3d5",
    "page": "73:2900"
  },
  "stories": [
    {
      "id": "figma-1984-1853",
      "name": "Textarea / State=Default, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1984:1853",
        "part": "1984:1854"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1984-1852",
      "name": "Textarea / State=Focus, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1984:1852",
        "part": "1984:1854"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1984-1851",
      "name": "Textarea / State=Destructive, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1984:1851",
        "part": "1984:1854"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-1984-1850",
      "name": "Textarea / State=Disabled, Dir=LTR",
      "kind": "component-variant",
      "view": {
        "figmaNode": "1984:1850",
        "part": "1984:1854"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2274-16472",
      "name": "Textarea / State=Default, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2274:16472",
        "part": "1984:1854"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2274-16477",
      "name": "Textarea / State=Focus, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2274:16477",
        "part": "1984:1854"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2274-16482",
      "name": "Textarea / State=Destructive, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2274:16482",
        "part": "1984:1854"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    },
    {
      "id": "figma-2274-16487",
      "name": "Textarea / State=Disabled, Dir=RTL",
      "kind": "component-variant",
      "view": {
        "figmaNode": "2274:16487",
        "part": "1984:1854"
      },
      "expectation": "Preserve this native static source depiction; event, value and focus contracts remain unresolved."
    }
  ],
  "contractCases": [
    {
      "id": "source-default",
      "html": "accessibility.html",
      "expected": "The wrapper is exactly a native textarea with React.ComponentProps<textarea>. value/defaultValue, name, required, disabled, readOnly, maxLength, rows and onChange are native props. It adds field-sizing-content and a minimum height, not autosave, rich text, a submit-on-Enter handler or a new value callback."
    },
    {
      "id": "keyboard-and-focus",
      "expected": "Native multiline editing and IME apply. Enter inserts a newline, Tab leaves the control, Escape does not revert committed text. Disabled suppresses editing and native form submission; readOnly permits focus/copy and retains its submitted value. Caller owns validation and explicit error relations."
    },
    {
      "id": "source-updates-and-caller-authority",
      "expected": "The wrapper is exactly a native textarea with React.ComponentProps<textarea>. value/defaultValue, name, required, disabled, readOnly, maxLength, rows and onChange are native props. It adds field-sizing-content and a minimum height, not autosave, rich text, a submit-on-Enter handler or a new value callback. Native multiline editing and IME apply. Enter inserts a newline, Tab leaves the control, Escape does not revert committed text. Disabled suppresses editing and native form submission; readOnly permits focus/copy and retains its submitted value. Caller owns validation and explicit error relations."
    }
  ]
}
