Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

(add) comments for ui/checkbox

kruzhambus0954f2008409
diff --git a/src/ui/Checkbox.tsx b/src/ui/Checkbox.tsx
index bfb57ab95..522bf4623 100644
--- a/src/ui/Checkbox.tsx
+++ b/src/ui/Checkbox.tsx
@@ -2,6 +2,7 @@ import React, { memo } from 'react'
import cx from 'clsx'
import PropTypes from 'prop-types'
+// Define the prop types for the component
interface ICheckbox {
label: string | JSX.Element,
hint?: string | JSX.Element,
@@ -45,6 +46,7 @@ const Checkbox = ({
)
}
+// Define the prop types for the component
Checkbox.propTypes = {
label: PropTypes.oneOfType([
PropTypes.string, PropTypes.node,
@@ -59,6 +61,7 @@ Checkbox.propTypes = {
disabled: PropTypes.bool,
}
+// Define the default props for the component
Checkbox.defaultProps = {
label: '',
hint: '',