UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

21 lines (18 loc) 782 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import { PropsForTranslation } from '../../hooks/useTranslation.js'; import { PropertyBaseProps } from './PropertyBase.js'; import '../../hooks/useLanguage.js'; import 'react'; type CheckboxPropertyTranslation = { yes: string; no: string; }; type CheckboxPropertyProps = Omit<PropertyBaseProps, 'icon' | 'input' | 'hasValue' | 'onRemove'> & { value?: boolean; onChange?: (value: boolean) => void; }; /** * An Input for a boolen properties */ declare const CheckboxProperty: ({ overwriteTranslation, value, onChange, readOnly, ...baseProps }: PropsForTranslation<CheckboxPropertyTranslation, CheckboxPropertyProps>) => react_jsx_runtime.JSX.Element; export { CheckboxProperty, type CheckboxPropertyProps };