UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

15 lines 985 B
import { jsx as _jsx } from "react/jsx-runtime"; import React from 'react'; import { useCheckbox } from '../../hooks/useCheckbox/useCheckbox'; import { CheckboxWithLabelControlled } from './checkboxWithLabelControlled'; const CheckboxWithLabelUncontrolledComponent = ({ initialChecked = false, disabled = false, ...props }, ref) => { const { isChecked, handleToggleIsChecked } = useCheckbox({ initialChecked, disabled }); return (_jsx(CheckboxWithLabelControlled, { ref: ref, checked: isChecked, disabled: disabled, onChange: handleToggleIsChecked, ...props })); }; /** * @deprecated This component has been deprecated and will be removed in the next MAJOR release. Will include all this on the CheckBox component */ const CheckboxWithLabelUncontrolled = React.forwardRef(CheckboxWithLabelUncontrolledComponent); export { CheckboxWithLabelUncontrolled }; export { CheckboxWithLabelUncontrolled as CheckboxWithLabel }; //# sourceMappingURL=checkboxWithLabelUncontrolled.js.map