{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "rating-mui-treasury",
  "type": "registry:item",
  "title": "Rating (MUI Treasury)",
  "description": "Rating styled with the MUI Treasury theme — install the theme alongside.",
  "dependencies": [
    "@mui/material",
    "@emotion/react",
    "@emotion/styled"
  ],
  "registryDependencies": [
    "https://www.mui-treasury.com/r/mui-treasury.json"
  ],
  "files": [
    {
      "path": "components/rating-mui-treasury/rating-mui-treasury.tsx",
      "target": "src/mui-treasury/components/rating-mui-treasury/rating-mui-treasury.tsx",
      "content": "'use client';\n\nimport * as React from 'react';\n\nimport {\n  Avatar,\n  Box,\n  FormHelperText,\n  Paper,\n  Rating,\n  Stack,\n  Typography,\n} from '@mui/material';\n\nconst LABELS: Record<number, string> = {\n  1: 'Needs work',\n  2: 'Could be better',\n  3: 'Average',\n  4: 'Solid read',\n  5: 'Loved it',\n};\n\nexport function RatingMuiTreasury() {\n  const [rating, setRating] = React.useState<number | null>(3);\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>\n        <Typography variant=\"subtitle1\" sx={{ mb: 1, fontWeight: 600 }}>\n          Product review\n        </Typography>\n        <Paper variant=\"outlined\" sx={{ p: 2, width: 280 }}>\n          <Stack\n            direction=\"row\"\n            spacing={1.5}\n            sx={{\n              alignItems: 'center',\n            }}\n          >\n            <Avatar sx={{ width: 32, height: 32, fontSize: 14 }}>JL</Avatar>\n            <Typography variant=\"body2\" sx={{ fontWeight: 600 }}>\n              Jules Lin\n            </Typography>\n          </Stack>\n          <Stack\n            direction=\"row\"\n            spacing={1}\n            sx={{\n              alignItems: 'center',\n              mt: 1.5,\n            }}\n          >\n            <Rating value={4.5} precision={0.5} readOnly />\n            <Typography\n              variant=\"caption\"\n              sx={{\n                color: 'text.secondary',\n              }}\n            >\n              4.5 — based on 1,284 reviews\n            </Typography>\n          </Stack>\n          <Typography variant=\"body2\" sx={{ mt: 1.5 }}>\n            The build quality exceeded expectations. Worth every penny.\n          </Typography>\n        </Paper>\n      </Box>\n      <Box>\n        <Typography variant=\"subtitle1\" sx={{ mb: 1, fontWeight: 600 }}>\n          Rate this article\n        </Typography>\n        <Paper variant=\"outlined\" sx={{ p: 2, width: 280 }}>\n          <Stack spacing={1.5}>\n            <Typography variant=\"body2\" sx={{ fontWeight: 600 }}>\n              How was this article?\n            </Typography>\n            <Stack\n              direction=\"row\"\n              spacing={1.5}\n              sx={{\n                alignItems: 'center',\n              }}\n            >\n              <Rating\n                value={rating}\n                onChange={(_, value) => setRating(value)}\n                precision={1}\n                size=\"large\"\n              />\n              {rating !== null && (\n                <Typography\n                  variant=\"caption\"\n                  sx={{\n                    color: 'text.secondary',\n                  }}\n                >\n                  {LABELS[rating]}\n                </Typography>\n              )}\n            </Stack>\n            <FormHelperText sx={{ m: 0 }}>\n              Your feedback shapes future updates.\n            </FormHelperText>\n          </Stack>\n        </Paper>\n      </Box>\n    </Box>\n  );\n}\n",
      "type": "registry:item"
    },
    {
      "path": "components/rating-mui-treasury/index.ts",
      "target": "src/mui-treasury/components/rating-mui-treasury/index.ts",
      "content": "export * from './rating-mui-treasury';\n",
      "type": "registry:item"
    }
  ],
  "meta": {
    "category": "primitive",
    "subcategory": "rating",
    "exportName": "RatingMuiTreasury"
  }
}