import React from "react"; import { CLASSPREFIX as eccgui } from "../../configuration/constants"; import Label, { LabelProps } from "../Label/Label"; import OverflowText from "../Typography/OverflowText"; export interface PropertyNameProps extends React.HTMLAttributes { /** * Increase or decrease the width used for the property name. */ size?: "small" | "medium" | "large"; /** * Force label to get displayed without line breaks. * This works best if you use a simple string as content. * Otherwise you may need to take care yourself about it. */ nowrap?: boolean; /** * Additional label properties, e.g. `tooltip`. * It is only used if the `PropertyName` has simple text input. */ labelProps?: LabelProps; } export const PropertyName = ({ children, className = "", size, nowrap, labelProps, ...otherDtProps }: PropertyNameProps) => { return (
{typeof children === "string" ? (
); }; export default PropertyName;