📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
(add) comments for ui/checkbox
kruzhambus0954f2008409
diff --git a/src/ui/Checkbox.tsx b/src/ui/Checkbox.tsxindex 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 componentinterface ICheckbox {label: string | JSX.Element,hint?: string | JSX.Element,@@ -45,6 +46,7 @@ const Checkbox = ({)}+// Define the prop types for the componentCheckbox.propTypes = {label: PropTypes.oneOfType([PropTypes.string, PropTypes.node,@@ -59,6 +61,7 @@ Checkbox.propTypes = {disabled: PropTypes.bool,}+// Define the default props for the componentCheckbox.defaultProps = {label: '',hint: '',