@helpwave/hightide
Version:
helpwave's component and theming library
22 lines (19 loc) • 838 B
TypeScript
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 NumberPropertyTranslation = {
value: string;
};
type NumberPropertyProps = Omit<PropertyBaseProps, 'icon' | 'input' | 'hasValue'> & {
value?: number;
suffix?: string;
onChange?: (value: number) => void;
onEditComplete?: (value: number) => void;
};
/**
* An Input for number properties
*/
declare const NumberProperty: ({ overwriteTranslation, value, onChange, onRemove, onEditComplete, readOnly, suffix, ...baseProps }: PropsForTranslation<NumberPropertyTranslation, NumberPropertyProps>) => react_jsx_runtime.JSX.Element;
export { NumberProperty, type NumberPropertyProps };