UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

23 lines (20 loc) 895 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import { PropsForTranslation } from '../../localization/useTranslation.mjs'; import { PropertyBaseProps } from './PropertyBase.mjs'; import '../../localization/util.mjs'; import 'react'; import '../../localization/defaults/form.mjs'; 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 };