{ "type": "composition", "npmDependencies": [], "fileDependencies": [], "id": "checkbox-card", "file": { "name": "checkbox-card.tsx", "content": "import { CheckboxCard as ChakraCheckboxCard } from \"@chakra-ui/react\"\nimport * as React from \"react\"\n\nexport interface CheckboxCardProps extends ChakraCheckboxCard.RootProps {\n icon?: React.ReactElement\n label?: React.ReactNode\n description?: React.ReactNode\n addon?: React.ReactNode\n indicator?: React.ReactNode | null\n indicatorPlacement?: \"start\" | \"end\" | \"inside\"\n inputProps?: React.InputHTMLAttributes\n}\n\nexport const CheckboxCard = React.forwardRef<\n HTMLInputElement,\n CheckboxCardProps\n>(function CheckboxCard(props, ref) {\n const {\n inputProps,\n label,\n description,\n icon,\n addon,\n indicator = ,\n indicatorPlacement = \"end\",\n ...rest\n } = props\n\n const hasContent = label || description || icon\n const ContentWrapper = indicator ? ChakraCheckboxCard.Content : React.Fragment\n\n return (\n \n \n \n {indicatorPlacement === \"start\" && indicator}\n {hasContent && (\n \n {icon}\n {label && (\n {label}\n )}\n {description && (\n \n {description}\n \n )}\n {indicatorPlacement === \"inside\" && indicator}\n \n )}\n {indicatorPlacement === \"end\" && indicator}\n \n {addon && {addon}}\n \n )\n})\n\nexport const CheckboxCardIndicator = ChakraCheckboxCard.Indicator\n" }, "component": "CheckboxCard" }