Interface representing props for the IconField component.

interface IIconFieldProps<Data = IAnything, Payload = IAnything> {
    disabled?: boolean;
    groupRef?: (element?: null | HTMLDivElement) => void;
    icon?: any;
    iconBackground?:
        | "error"
        | "inherit"
        | "primary"
        | "secondary"
        | "success"
        | "info"
        | "warning";
    iconColor?: | "error"
    | "inherit"
    | "primary"
    | "secondary"
    | "success"
    | "info"
    | "warning"
    | "default";
    iconSize?: number;
}

Type Parameters

  • Data = IAnything

    The type of data for the field.

  • Payload = IAnything

    The type of payload for the field.

Hierarchy (View Summary)

Properties

disabled?: boolean

Represents the "disabled" property of a field in the given data payload.

The type of the data payload.

The type of the payload object.

The value of the "disabled" property.

groupRef?: (element?: null | HTMLDivElement) => void

Represents the optional property groupRef from the IField interface. The groupRef property is a subset of the PickProp type with the 'groupRef' key.

icon?: any

Retrieves the 'icon' property from the given variable.

The type of the variable.

The key to pick from the variable.

The variable to pick the property from.

  • The picked property.
iconBackground?:
    | "error"
    | "inherit"
    | "primary"
    | "secondary"
    | "success"
    | "info"
    | "warning"

Retrieves the 'iconBackground' property from the given variable.

The type of the variable.

The key to pick from the variable.

The variable to pick the property from.

  • The picked property.
iconColor?:
    | "error"
    | "inherit"
    | "primary"
    | "secondary"
    | "success"
    | "info"
    | "warning"
    | "default"

Retrieves the 'iconColor' property from the given variable.

The type of the variable.

The key to pick from the variable.

The variable to pick the property from.

  • The picked property.
iconSize?: number

Retrieves the 'iconSize' property from the given variable.

The type of the variable.

The key to pick from the variable.

The variable to pick the property from.

  • The picked property.