use hooks

This commit is contained in:
Alex Holliday committed 2025-06-12 12:44:46 +08:00
1 parent 948e5e932b
commit 50986d4493
23 files changed
+204 -269

No files matched your search

@@ -105,7 +105,7 @@ const Checkbox = ({
};
Checkbox.propTypes = {
id: PropTypes.string.isRequired,
id: PropTypes.string,
name: PropTypes.string,
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]).isRequired,
size: PropTypes.oneOf(["small", "medium", "large"]),