{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "files": [
    {
      "content": "\"use client\";\n\nimport { EyeIcon, EyeOffIcon } from \"lucide-react\";\nimport { useState } from \"react\";\nimport { Field } from \"~/registry/ui/field\";\nimport { InputGroup } from \"~/registry/ui/input-group\";\nimport { TextField } from \"~/registry/ui/text-field\";\n\nexport function TextfieldPasswordDemo() {\n  const [showPassword, setShowPassword] = useState(false);\n\n  return (\n    <Field.Root render={<TextField />}>\n      <Field.Label>Password</Field.Label>\n      <InputGroup.Root>\n        <InputGroup.Input\n          placeholder=\"Enter your password\"\n          type={showPassword ? \"text\" : \"password\"}\n        />\n        <InputGroup.Addon align=\"inline-end\">\n          <InputGroup.Button\n            aria-label={showPassword ? \"Hide password\" : \"Show password\"}\n            onPress={() => setShowPassword(!showPassword)}\n            size=\"icon-xs\"\n            variant=\"ghost\"\n          >\n            {showPassword ? (\n              <EyeOffIcon className=\"size-4\" />\n            ) : (\n              <EyeIcon className=\"size-4\" />\n            )}\n          </InputGroup.Button>\n        </InputGroup.Addon>\n      </InputGroup.Root>\n    </Field.Root>\n  );\n}\n",
      "path": "src/registry/examples/textfield/textfield-password-demo.tsx",
      "type": "registry:example"
    }
  ],
  "name": "textfield-password-demo",
  "registryDependencies": [
    "@kanpeki/textfield"
  ],
  "type": "registry:example"
}