{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "checkbox", "title": "Checkbox", "description": "Polaris-styled Checkbox component.", "dependencies": [], "devDependencies": [ "@shopify/polaris-types" ], "registryDependencies": [ "@polaris-shadcn/theme", "@polaris-shadcn/utils" ], "files": [ { "path": "registry/templates/components/ui/checkbox.tsx", "content": "import * as React from \"react\";\nimport { cn } from \"../../lib/utils\";\n\ntype SCheckboxProps = React.ComponentPropsWithoutRef<\"s-checkbox\">;\n\nexport interface CheckboxProps extends SCheckboxProps {\n className?: string;\n}\n\nconst Checkbox = React.forwardRef<\n HTMLElementTagNameMap[\"s-checkbox\"],\n CheckboxProps\n>(\n (\n {\n className,\n id,\n name,\n label,\n details,\n value,\n checked,\n defaultChecked,\n indeterminate,\n defaultIndeterminate,\n disabled = false,\n required = false,\n error,\n accessibilityLabel,\n onChange,\n onInput,\n ...props\n },\n ref,\n ) => {\n return (\n \n );\n },\n);\nCheckbox.displayName = \"Checkbox\";\n\nexport { Checkbox };\n", "type": "registry:ui" } ], "type": "registry:ui" }