{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "text-field-mui-treasury",
  "type": "registry:item",
  "title": "Text Field (MUI Treasury)",
  "description": "Text Field styled with the MUI Treasury theme — install the theme alongside.",
  "dependencies": [
    "@mui/material",
    "lucide-react",
    "@emotion/react",
    "@emotion/styled"
  ],
  "registryDependencies": [
    "https://www.mui-treasury.com/r/mui-treasury.json"
  ],
  "files": [
    {
      "path": "components/text-field-mui-treasury/text-field-mui-treasury.tsx",
      "target": "src/mui-treasury/components/text-field-mui-treasury/text-field-mui-treasury.tsx",
      "content": "'use client';\n\nimport * as React from 'react';\n\nimport {\n  Box,\n  IconButton,\n  InputAdornment,\n  Stack,\n  TextField,\n  Typography,\n} from '@mui/material';\nimport { Eye, EyeOff } from 'lucide-react';\n\nexport function TextFieldMuiTreasury() {\n  const [showPassword, setShowPassword] = React.useState(false);\n\n  return (\n    <Box\n      sx={{\n        display: 'flex',\n        flexWrap: 'wrap',\n        justifyContent: 'center',\n        alignItems: 'flex-start',\n        gap: 8,\n        width: '100%',\n      }}\n    >\n      <Box sx={{ width: 280 }}>\n        <Typography variant=\"subtitle1\" sx={{ mb: 1, fontWeight: 600 }}>\n          Sign in\n        </Typography>\n        <Stack spacing={2}>\n          <TextField\n            label=\"Email\"\n            defaultValue=\"ada@acme.com\"\n            helperText=\"We'll never share your email.\"\n            fullWidth\n          />\n          <TextField\n            label=\"Password\"\n            type={showPassword ? 'text' : 'password'}\n            defaultValue=\"hunter2hunter2\"\n            helperText=\"Use at least 12 characters.\"\n            autoFocus\n            fullWidth\n            slotProps={{\n              input: {\n                endAdornment: (\n                  <InputAdornment position=\"end\">\n                    <IconButton\n                      aria-label={\n                        showPassword ? 'Hide password' : 'Show password'\n                      }\n                      onClick={() => setShowPassword((prev) => !prev)}\n                      edge=\"end\"\n                      size=\"small\"\n                    >\n                      {showPassword ? <Eye size={18} /> : <EyeOff size={18} />}\n                    </IconButton>\n                  </InputAdornment>\n                ),\n              },\n            }}\n          />\n        </Stack>\n      </Box>\n\n      <Box sx={{ width: 280 }}>\n        <Typography variant=\"subtitle1\" sx={{ mb: 1, fontWeight: 600 }}>\n          Update profile\n        </Typography>\n        <Stack spacing={2}>\n          <TextField\n            label=\"Display name\"\n            defaultValue=\"Ada Lovelace\"\n            fullWidth\n          />\n          <TextField\n            label=\"Username\"\n            defaultValue=\"ada\"\n            error\n            helperText=\"That username is already taken.\"\n            fullWidth\n          />\n          <TextField\n            label=\"Bio\"\n            defaultValue=\"Mathematician. First programmer.\"\n            multiline\n            rows={2}\n            fullWidth\n          />\n        </Stack>\n      </Box>\n    </Box>\n  );\n}\n",
      "type": "registry:item"
    },
    {
      "path": "components/text-field-mui-treasury/index.ts",
      "target": "src/mui-treasury/components/text-field-mui-treasury/index.ts",
      "content": "export * from './text-field-mui-treasury';\n",
      "type": "registry:item"
    }
  ],
  "meta": {
    "category": "primitive",
    "subcategory": "text-field",
    "exportName": "TextFieldMuiTreasury"
  }
}