Skip to content

Commit 0a86b26

Browse files
committed
add style to checkbox.
1 parent 7c15b92 commit 0a86b26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Checkbox/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import PropTypes from 'prop-types';
22
import React, { useRef, useEffect } from 'react';
33

4-
const Checkbox = ({ id, label, indeterminate, className, ...rest }) => {
4+
const Checkbox = ({ id, label, indeterminate, className, style, ...rest }) => {
55
const inputRef = useRef();
66
useEffect(() => {
77
inputRef.current.indeterminate = indeterminate;
@@ -20,6 +20,7 @@ const Checkbox = ({ id, label, indeterminate, className, ...rest }) => {
2020

2121
Checkbox.propTypes = {
2222
className: PropTypes.string,
23+
style: PropTypes.object,
2324
checked: PropTypes.bool,
2425
id: PropTypes.string.isRequired,
2526
disabled: PropTypes.bool,

0 commit comments

Comments
 (0)