Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uiw/react-checkbox

Package Overview
Dependencies
Maintainers
2
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-checkbox - npm Package Compare versions

Comparing version 4.21.18 to 4.21.19

6

package.json
{
"name": "@uiw/react-checkbox",
"version": "4.21.18",
"version": "4.21.19",
"description": "Checkbox component",

@@ -47,5 +47,5 @@ "author": "Kenny Wong <wowohoo@qq.com>",

"dependencies": {
"@uiw/react-radio": "^4.21.18",
"@uiw/utils": "^4.21.18"
"@uiw/react-radio": "^4.21.19",
"@uiw/utils": "^4.21.19"
}
}

@@ -20,24 +20,23 @@ Checkbox 多选框

<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->
```jsx
import ReactDOM from 'react-dom';
```jsx mdx:preview&bg=#fff
import React from 'react';
import { Checkbox } from 'uiw';
ReactDOM.render(
<div>
<Checkbox onChange={(e) =>{
console.log(e.target.checked)
console.log(e.target)
}}>未选中</Checkbox>
<Checkbox checked >选中</Checkbox>
</div>,
_mount_
);
export default function Demo() {
return(
<div>
<Checkbox onChange={(e) =>{
console.log(e.target.checked)
console.log(e.target)
}}>未选中</Checkbox>
<Checkbox checked >选中</Checkbox>
</div>
);
}
```
### Form 中使用 Checkbox
<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->
```jsx
import ReactDOM from 'react-dom';
```jsx mdx:preview&bg=#fff
import React from 'react';
import { Form, Checkbox, Row, Col, Button, Notify } from 'uiw';

@@ -117,3 +116,4 @@

)
ReactDOM.render(<Demo />, _mount_);
export default Demo;
```

@@ -125,15 +125,15 @@

<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->
```jsx
import ReactDOM from 'react-dom';
```jsx mdx:preview&bg=#fff
import React from 'react';
import { Checkbox } from 'uiw';
ReactDOM.render(
<div>
<Checkbox disabled checked>未选中禁用</Checkbox>
<Checkbox disabled checked>选中禁用</Checkbox>
<Checkbox disabled indeterminate>半选中禁用</Checkbox>
</div>,
_mount_
);
export default function Demo() {
return(
<div>
<Checkbox disabled checked>未选中禁用</Checkbox>
<Checkbox disabled checked>选中禁用</Checkbox>
<Checkbox disabled indeterminate>半选中禁用</Checkbox>
</div>
);
}
```

@@ -143,5 +143,4 @@

<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->
```jsx
import ReactDOM from 'react-dom';
```jsx mdx:preview&bg=#fff
import React from 'react';
import { Checkbox, Divider } from 'uiw';

@@ -192,4 +191,3 @@

}
ReactDOM.render(<Demo />, _mount_);
export default Demo;
```

@@ -201,5 +199,4 @@

<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->
```jsx
import ReactDOM from 'react-dom';
```jsx mdx:preview&bg=#fff
import React from 'react';
import { Checkbox, Divider, Button } from 'uiw';

@@ -246,3 +243,3 @@

}
ReactDOM.render(<Demo />, _mount_);
export default Demo;
```

@@ -254,5 +251,4 @@

<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->
```jsx
import ReactDOM from 'react-dom';
```jsx mdx:preview&bg=#fff
import React from 'react';
import { Checkbox, Button } from 'uiw';

@@ -288,3 +284,3 @@

}
ReactDOM.render(<Demo />, _mount_);
export default Demo;
```

@@ -291,0 +287,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc