Renders a typography field component.

  • Parameters

    • props: ITypographyFieldProps<any, any> & ITypographyFieldPrivate<any>

      The props for the typography field.

      Interface for props of the TypographyField component.

      • OptionalclassName?: string

        Gets the value of the className property from the provided object.

        This function uses the PickProp type from the IField interface to pick the 'className' property from the provided object based on the Data and Payload generic types.

        The type of the data in the IField interface.

        The type of the payload in the IField interface.

        The object from which to get the className property.

        The value of the className property, or undefined if it doesn't exist.

      • OptionalgroupRef?: (element?: null | HTMLDivElement) => void

        Represents a reference to a group in a field. This reference is optional.

      • Optionalplaceholder?: string

        Retrieves the placeholder property from the given IField object. The placeholder property is a key of type PickProp.

        The input field object.

        • The placeholder property of the field object.
      • Optionalstyle?: any

        Retrieves the 'style' property of the given variable, using the 'PickProp' utility type.

        The type of the field's data.

        The type of the field's payload.

        The type of the variable to pick property from.

      • OptionaltypoVariant?:
            | "h1"
            | "h2"
            | "h3"
            | "h4"
            | "h5"
            | "h6"
            | "subtitle1"
            | "subtitle2"
            | "body1"
            | "body2"
            | "caption"

        Represents the typoVariant property of an object.

      Represents a private interface for a typography field.

      • value: any

    Returns Element

    • The rendered typography field component.

Properties

Properties

displayName: string