@helpwave/hightide
Version:
helpwave's component and theming library
27 lines (24 loc) • 976 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { ReactNode } from 'react';
import { PropsForTranslation } from '../../localization/useTranslation.js';
import { FormTranslationType } from '../../localization/defaults/form.js';
import '../../localization/util.js';
type PropertyBaseTranslation = FormTranslationType;
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 };