UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

22 lines (19 loc) 849 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 TextPropertyTranslation = { text: string; }; type TextPropertyProps = Omit<PropertyBaseProps, 'icon' | 'input' | 'hasValue'> & { value?: string; onChange?: (value: string) => void; onEditComplete?: (value: string) => void; }; /** * An Input for Text properties */ declare const TextProperty: ({ overwriteTranslation, value, readOnly, onChange, onRemove, onEditComplete, ...baseProps }: PropsForTranslation<TextPropertyTranslation, TextPropertyProps>) => react_jsx_runtime.JSX.Element; export { TextProperty, type TextPropertyProps };