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

19 lines (18 loc) 1 kB
import React from 'react'; import { ICheckboxUnControlled } from './types/checkbox'; declare const CheckboxUnControlledComponent: <V extends string | unknown>({ disabled, error, required, checked, onChange, ...props }: ICheckboxUnControlled<V>, ref?: React.ForwardedRef<HTMLInputElement> | undefined | null) => JSX.Element; /** * @description * Checkbox component is a input component that can be used to select one or more options from a list of options. * It can be used to create a list of options that can be selected. * @param {React.PropsWithChildren<ICheckboxUnControlled<V>>} props * @returns {JSX.Element} * @constructor * @example * <Checkbox variant="checkbox" /> */ declare const CheckboxUnControlled: <V extends string>(props: React.PropsWithChildren<ICheckboxUnControlled<V>> & { ref?: React.ForwardedRef<HTMLInputElement> | undefined | null; }) => ReturnType<typeof CheckboxUnControlledComponent>; export { CheckboxUnControlled }; export { CheckboxUnControlled as Checkbox };