diff --git a/src/Checkbox/index.js b/src/Checkbox/index.js index 2a0d643..08706fb 100644 --- a/src/Checkbox/index.js +++ b/src/Checkbox/index.js @@ -1,7 +1,7 @@ import PropTypes from 'prop-types'; import React, { useRef, useEffect } from 'react'; -const Checkbox = ({ id, label, indeterminate, className, ...rest }) => { +const Checkbox = ({ id, label, indeterminate, className, style, ...rest }) => { const inputRef = useRef(); useEffect(() => { inputRef.current.indeterminate = indeterminate; @@ -20,6 +20,7 @@ const Checkbox = ({ id, label, indeterminate, className, ...rest }) => { Checkbox.propTypes = { className: PropTypes.string, + style: PropTypes.object, checked: PropTypes.bool, id: PropTypes.string.isRequired, disabled: PropTypes.bool, diff --git a/src/ChoiceTile/index.js b/src/ChoiceTile/index.js index 88e2ef2..8807a00 100644 --- a/src/ChoiceTile/index.js +++ b/src/ChoiceTile/index.js @@ -17,10 +17,11 @@ const ChoiceTile = ({ size, subdued, title, + style, ...rest }) => { return ( -