UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

22 lines (19 loc) 841 B
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 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 };