UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

21 lines (18 loc) 793 B
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 TextPropertyTranslation = { value: 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 };