{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ai-suggestion",
  "type": "registry:item",
  "title": "Ai Suggestion",
  "description": "A ai-suggestion item.",
  "dependencies": [
    "@mui/material",
    "@emotion/react",
    "@emotion/styled"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "components/ai-suggestion/ai-suggestion.tsx",
      "target": "src/mui-treasury/components/ai-suggestion/ai-suggestion.tsx",
      "content": "'use client';\n\nimport type { ReactNode } from 'react';\n\nimport Box from '@mui/material/Box';\nimport Button from '@mui/material/Button';\nimport type { ButtonProps } from '@mui/material/Button';\nimport type { SxProps, Theme } from '@mui/material/styles';\n\nexport type SuggestionsProps = {\n  children?: ReactNode;\n  sx?: SxProps<Theme>;\n};\n\nexport const Suggestions = ({ children, sx }: SuggestionsProps) => (\n  <Box\n    sx={{\n      width: '100%',\n      overflowX: 'auto',\n      overflowY: 'hidden',\n      whiteSpace: 'nowrap',\n      '&::-webkit-scrollbar': {\n        height: 8,\n      },\n      '&::-webkit-scrollbar-track': {\n        bgcolor: 'action.hover',\n        borderRadius: 1,\n      },\n      '&::-webkit-scrollbar-thumb': {\n        bgcolor: 'action.disabled',\n        borderRadius: 1,\n        '&:hover': {\n          bgcolor: 'action.selected',\n        },\n      },\n      ...sx,\n    }}\n  >\n    <Box\n      sx={{\n        display: 'flex',\n        width: 'max-content',\n        flexWrap: 'nowrap',\n        alignItems: 'center',\n        gap: 1,\n      }}\n    >\n      {children}\n    </Box>\n  </Box>\n);\n\nexport type SuggestionProps = Omit<ButtonProps, 'onClick'> & {\n  suggestion: string;\n  onClick?: (suggestion: string) => void;\n};\n\nexport const Suggestion = ({\n  suggestion,\n  onClick,\n  sx,\n  variant = 'outlined',\n  size = 'small',\n  children,\n  ...props\n}: SuggestionProps) => {\n  const handleClick = () => {\n    onClick?.(suggestion);\n  };\n\n  return (\n    <Button\n      onClick={handleClick}\n      size={size}\n      type=\"button\"\n      variant={variant}\n      sx={{\n        borderRadius: 99,\n        px: 2,\n        textTransform: 'none',\n        whiteSpace: 'nowrap',\n        ...sx,\n      }}\n      {...props}\n    >\n      {children || suggestion}\n    </Button>\n  );\n};\n",
      "type": "registry:item"
    },
    {
      "path": "components/ai-suggestion/index.ts",
      "target": "src/mui-treasury/components/ai-suggestion/index.ts",
      "content": "export * from './ai-suggestion';\n",
      "type": "registry:item"
    }
  ],
  "meta": {
    "category": "ai",
    "subcategory": "elements"
  }
}