@eccenca/gui-elements
Version:
GUI elements based on other libraries, usable in React application, written in Typescript.
22 lines (21 loc) • 834 B
TypeScript
import React from "react";
import { LabelProps } from "../Label/Label";
export interface PropertyNameProps extends React.HTMLAttributes<HTMLElement> {
/**
* 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 declare const PropertyName: ({ children, className, size, nowrap, labelProps, ...otherDtProps }: PropertyNameProps) => React.JSX.Element;
export default PropertyName;