{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "toggle-button-mui-treasury",
  "type": "registry:item",
  "title": "Toggle Button (MUI Treasury)",
  "description": "Toggle Button styled with the MUI Treasury theme — install the theme alongside.",
  "dependencies": [
    "@mui/icons-material",
    "@mui/material",
    "@emotion/react",
    "@emotion/styled"
  ],
  "registryDependencies": [
    "https://www.mui-treasury.com/r/mui-treasury.json"
  ],
  "files": [
    {
      "path": "components/toggle-button-mui-treasury/toggle-button-mui-treasury.tsx",
      "target": "src/mui-treasury/components/toggle-button-mui-treasury/toggle-button-mui-treasury.tsx",
      "content": "'use client';\n\nimport * as React from 'react';\n\nimport {\n  FormatAlignCenter,\n  FormatAlignJustify,\n  FormatAlignLeft,\n  FormatAlignRight,\n  ViewKanban,\n  ViewList,\n  ViewModule,\n} from '@mui/icons-material';\nimport {\n  Box,\n  ToggleButton,\n  ToggleButtonGroup,\n  Typography,\n} from '@mui/material';\n\nexport function ToggleButtonMuiTreasury() {\n  const [alignment, setAlignment] = React.useState<string | null>('left');\n  const [view, setView] = React.useState<string | null>('grid');\n\n  return (\n    <Box\n      sx={{\n        display: 'flex',\n        flexWrap: 'wrap',\n        justifyContent: 'center',\n        alignItems: 'flex-start',\n        gap: 8,\n      }}\n    >\n      <Box>\n        <Typography variant=\"subtitle1\" sx={{ mb: 1, fontWeight: 600 }}>\n          Text alignment\n        </Typography>\n        <ToggleButtonGroup\n          exclusive\n          value={alignment}\n          onChange={(_, next) => setAlignment(next)}\n          aria-label=\"Text alignment\"\n        >\n          <ToggleButton value=\"left\" aria-label=\"Align left\">\n            <FormatAlignLeft fontSize=\"small\" />\n          </ToggleButton>\n          <ToggleButton value=\"center\" aria-label=\"Align center\">\n            <FormatAlignCenter fontSize=\"small\" />\n          </ToggleButton>\n          <ToggleButton value=\"right\" aria-label=\"Align right\">\n            <FormatAlignRight fontSize=\"small\" />\n          </ToggleButton>\n          <ToggleButton value=\"justify\" aria-label=\"Align justify\">\n            <FormatAlignJustify fontSize=\"small\" />\n          </ToggleButton>\n        </ToggleButtonGroup>\n      </Box>\n\n      <Box>\n        <Typography variant=\"subtitle1\" sx={{ mb: 1, fontWeight: 600 }}>\n          View mode\n        </Typography>\n        <ToggleButtonGroup\n          exclusive\n          value={view}\n          onChange={(_, next) => setView(next)}\n          aria-label=\"View mode\"\n        >\n          <ToggleButton value=\"list\">\n            <ViewList sx={{ mr: 1 }} fontSize=\"small\" />\n            List\n          </ToggleButton>\n          <ToggleButton value=\"grid\">\n            <ViewModule sx={{ mr: 1 }} fontSize=\"small\" />\n            Grid\n          </ToggleButton>\n          <ToggleButton value=\"board\">\n            <ViewKanban sx={{ mr: 1 }} fontSize=\"small\" />\n            Board\n          </ToggleButton>\n        </ToggleButtonGroup>\n      </Box>\n    </Box>\n  );\n}\n",
      "type": "registry:item"
    },
    {
      "path": "components/toggle-button-mui-treasury/index.ts",
      "target": "src/mui-treasury/components/toggle-button-mui-treasury/index.ts",
      "content": "export * from './toggle-button-mui-treasury';\n",
      "type": "registry:item"
    }
  ],
  "meta": {
    "category": "primitive",
    "subcategory": "toggle-button",
    "exportName": "ToggleButtonMuiTreasury"
  }
}