You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@radix-ui/react-checkbox

Package Overview
Dependencies
Maintainers
6
Versions
272
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-checkbox - npm Package Compare versions

Comparing version

to
1.1.6-rc.1744259191780

LICENSE

11

dist/index.js

@@ -31,3 +31,3 @@ "use strict";

// packages/react/checkbox/src/index.ts
// src/index.ts
var index_exports = {};

@@ -43,3 +43,3 @@ __export(index_exports, {

// packages/react/checkbox/src/checkbox.tsx
// src/checkbox.tsx
var React = __toESM(require("react"));

@@ -76,6 +76,7 @@ var import_react_compose_refs = require("@radix-ui/react-compose-refs");

const isFormControl = button ? form || !!button.closest("form") : true;
const [checked = false, setChecked] = (0, import_react_use_controllable_state.useControllableState)({
const [checked, setChecked] = (0, import_react_use_controllable_state.useControllableState)({
prop: checkedProp,
defaultProp: defaultChecked,
onChange: onCheckedChange
defaultProp: defaultChecked ?? false,
onChange: onCheckedChange,
caller: CHECKBOX_NAME
});

@@ -82,0 +83,0 @@ const initialCheckedStateRef = React.useRef(checked);

{
"name": "@radix-ui/react-checkbox",
"version": "1.1.5",
"version": "1.1.6-rc.1744259191780",
"license": "MIT",

@@ -8,19 +8,2 @@ "source": "./src/index.ts",

"module": "./dist/index.mjs",
"publishConfig": {
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
}
},
"files": [

@@ -31,14 +14,9 @@ "dist",

"sideEffects": false,
"scripts": {
"lint": "eslint --max-warnings 0 src",
"clean": "rm -rf dist",
"version": "yarn version"
},
"dependencies": {
"@radix-ui/react-context": "1.1.2",
"@radix-ui/react-compose-refs": "1.1.2",
"@radix-ui/primitive": "1.1.2",
"@radix-ui/react-compose-refs": "1.1.2",
"@radix-ui/react-context": "1.1.2",
"@radix-ui/react-presence": "1.1.3",
"@radix-ui/react-primitive": "2.0.3",
"@radix-ui/react-use-controllable-state": "1.1.1",
"@radix-ui/react-use-controllable-state": "1.2.0-rc.1744259191780",
"@radix-ui/react-use-previous": "1.1.1",

@@ -48,4 +26,2 @@ "@radix-ui/react-use-size": "1.1.1"

"devDependencies": {
"@repo/eslint-config": "0.0.0",
"@repo/typescript-config": "0.0.0",
"@types/react": "^19.0.7",

@@ -56,3 +32,6 @@ "@types/react-dom": "^19.0.3",

"react-dom": "^19.0.0",
"typescript": "^5.7.3"
"typescript": "^5.7.3",
"@repo/builder": "0.0.0",
"@repo/eslint-config": "0.0.0",
"@repo/typescript-config": "0.0.0"
},

@@ -81,2 +60,9 @@ "peerDependencies": {

},
"scripts": {
"lint": "eslint --max-warnings 0 src",
"clean": "rm -rf dist",
"typecheck": "tsc --noEmit",
"build": "radix-build"
},
"types": "./dist/index.d.ts",
"exports": {

@@ -93,4 +79,3 @@ ".": {

}
},
"types": "./dist/index.d.ts"
}
}
# `react-checkbox`
## Installation
```sh
$ yarn add @radix-ui/react-checkbox
# or
$ npm install @radix-ui/react-checkbox
```
## Usage
View docs [here](https://radix-ui.com/primitives/docs/components/checkbox).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet