reset comoponents
This commit is contained in:
1 parent
701e81cb78
commit
5a85711cac
3 files changed
+8
-12
No files matched your search
@@ -21,7 +21,6 @@ import "./index.css";
|
||||
* @param {string} [props.value] - Optional value associated with the checkbox
|
||||
* @param {Function} [props.onChange] - Callback function triggered when checkbox state changes
|
||||
* @param {boolean} [props.isDisabled] - Determines if the checkbox is disabled
|
||||
* @param {boolean} [props.alignSelf] - Whether the checkbox label should be positioned on flex-start.
|
||||
*
|
||||
* @returns {React.ReactElement} Rendered Checkbox component
|
||||
*
|
||||
@@ -55,12 +54,10 @@ const Checkbox = ({
|
||||
value,
|
||||
onChange,
|
||||
isDisabled,
|
||||
alignSelf
|
||||
}) => {
|
||||
/* TODO move sizes to theme */
|
||||
const sizes = { small: "14px", medium: "16px", large: "18px" };
|
||||
const theme = useTheme();
|
||||
const override = alignSelf? { alignSelf: "flex-start" } : {}
|
||||
return (
|
||||
<FormControlLabel
|
||||
className="checkbox-wrapper"
|
||||
@@ -79,7 +76,6 @@ const Checkbox = ({
|
||||
sx={{
|
||||
"&:hover": { backgroundColor: "transparent" },
|
||||
"& svg": { width: sizes[size], height: sizes[size] },
|
||||
...override
|
||||
}}
|
||||
/>
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user