{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "radio-segment-01",
  "type": "registry:item",
  "title": "Segmented Radio Control",
  "description": "A segmented control component for selecting between options with radio buttons",
  "dependencies": [
    "@mui/material",
    "@emotion/react",
    "@emotion/styled"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "components/radio-segment-01/radio-segment-01.tsx",
      "target": "src/mui-treasury/components/radio-segment-01/radio-segment-01.tsx",
      "content": "'use client';\n\nimport * as React from 'react';\n\nimport {\n  FormControlLabel,\n  Radio,\n  RadioGroup,\n  Stack,\n  Typography,\n} from '@mui/material';\n\nexport interface RadioSegment01Props {\n  defaultValue?: string;\n  value?: string;\n  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;\n}\n\nexport function RadioSegment01({\n  defaultValue = '16-inch',\n  value,\n  onChange,\n}: RadioSegment01Props) {\n  return (\n    <RadioGroup\n      row\n      name=\"size-options\"\n      defaultValue={defaultValue}\n      value={value}\n      onChange={onChange}\n      sx={(theme) => ({\n        display: 'flex',\n        flexWrap: 'nowrap',\n        gap: 0,\n        width: '400px',\n        maxWidth: '100%',\n        '& .MuiFormControlLabel-root': {\n          m: 0,\n          flex: 1,\n          border: 1,\n          borderColor: 'divider',\n          cursor: 'pointer',\n          '&:hover': {\n            backgroundColor: 'action.hover',\n          },\n          '&:has(:checked)': {\n            outline: 2,\n            outlineStyle: 'solid',\n            outlineOffset: -2,\n            outlineColor: (theme.vars || theme).palette.primary.main,\n            zIndex: 1,\n          },\n          '&:first-of-type': {\n            borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,\n            borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,\n          },\n          '&:last-of-type': {\n            borderTopRightRadius: (theme.vars || theme).shape.borderRadius,\n            borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,\n          },\n          '&:not(:first-of-type)': {\n            marginLeft: '-1px',\n          },\n        },\n      })}\n    >\n      <FormControlLabel\n        value=\"14-inch\"\n        control={\n          <Radio\n            sx={{\n              position: 'absolute',\n              opacity: 0,\n              width: 0,\n              height: 0,\n            }}\n          />\n        }\n        slotProps={{ typography: { component: 'div', sx: { width: '100%' } } }}\n        label={\n          <Stack\n            spacing={0.5}\n            sx={{\n              py: 3,\n              px: 4,\n              textAlign: 'center',\n              width: '100%',\n            }}\n          >\n            <Typography variant=\"h4\">14-inch</Typography>\n            <Typography\n              variant=\"body1\"\n              sx={{\n                color: 'text.secondary',\n              }}\n            >\n              From $1599\n            </Typography>\n          </Stack>\n        }\n      />\n      <FormControlLabel\n        value=\"16-inch\"\n        control={\n          <Radio\n            sx={{\n              position: 'absolute',\n              opacity: 0,\n              width: 0,\n              height: 0,\n            }}\n          />\n        }\n        slotProps={{ typography: { component: 'div', sx: { width: '100%' } } }}\n        label={\n          <Stack\n            spacing={0.5}\n            sx={{\n              py: 3,\n              px: 4,\n              textAlign: 'center',\n              width: '100%',\n            }}\n          >\n            <Typography variant=\"h4\">16-inch</Typography>\n            <Typography\n              variant=\"body1\"\n              sx={{\n                color: 'text.secondary',\n              }}\n            >\n              From $2499\n            </Typography>\n          </Stack>\n        }\n      />\n    </RadioGroup>\n  );\n}\n",
      "type": "registry:item"
    },
    {
      "path": "components/radio-segment-01/index.ts",
      "target": "src/mui-treasury/components/radio-segment-01/index.ts",
      "content": "export * from './radio-segment-01';\n",
      "type": "registry:item"
    }
  ],
  "meta": {
    "category": "primitive",
    "subcategory": "radio",
    "exportName": "RadioSegment01"
  }
}