UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

19 lines (16 loc) 858 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import { PropsForTranslation } from '../../localization/useTranslation.mjs'; import { PropertyBaseProps } from './PropertyBase.mjs'; import { FormTranslationType } from '../../localization/defaults/form.mjs'; import '../../localization/util.mjs'; import 'react'; type CheckboxPropertyTranslation = FormTranslationType; type CheckboxPropertyProps = Omit<PropertyBaseProps, 'icon' | 'input' | 'hasValue' | 'onRemove'> & { value?: boolean; onChange?: (value: boolean) => void; }; /** * An Input component for a boolean values */ declare const CheckboxProperty: ({ overwriteTranslation, value, onChange, readOnly, ...baseProps }: PropsForTranslation<CheckboxPropertyTranslation, CheckboxPropertyProps>) => react_jsx_runtime.JSX.Element; export { CheckboxProperty, type CheckboxPropertyProps };