@helpwave/hightide
Version:
helpwave's component and theming library
22 lines (19 loc) • 845 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { PropsForTranslation } from '../../localization/useTranslation.js';
import { PropertyBaseProps } from './PropertyBase.js';
import '../../localization/util.js';
import 'react';
import '../../localization/defaults/form.js';
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 };