@helpwave/hightide
Version:
helpwave's component and theming library
28 lines (25 loc) • 900 B
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { ReactNode } from 'react';
import { PropsForTranslation } from '../../hooks/useTranslation.mjs';
import '../../hooks/useLanguage.mjs';
type PropertyBaseTranslation = {
remove: string;
};
type PropertyBaseProps = {
name: string;
input: (props: {
softRequired: boolean;
hasValue: boolean;
}) => ReactNode;
onRemove?: () => void;
hasValue: boolean;
softRequired?: boolean;
readOnly?: boolean;
icon?: ReactNode;
className?: string;
};
/**
* A component for showing a properties with uniform styling
*/
declare const PropertyBase: ({ overwriteTranslation, name, input, softRequired, hasValue, icon, readOnly, onRemove, className, }: PropsForTranslation<PropertyBaseTranslation, PropertyBaseProps>) => react_jsx_runtime.JSX.Element;
export { PropertyBase, type PropertyBaseProps };