@helpwave/hightide
Version:
helpwave's component and theming library
21 lines (18 loc) • 785 B
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { PropsForTranslation } from '../../hooks/useTranslation.mjs';
import { PropertyBaseProps } from './PropertyBase.mjs';
import '../../hooks/useLanguage.mjs';
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 };