Props interface for the IComponentField component.

interface IComponentFieldProps<Data = IAnything, Payload = IAnything> {
    className?: string;
    element?: any;
    groupRef?: (element?: null | HTMLDivElement) => void;
    name?: string;
    placeholder?: string;
    style?: any;
    sx?: any;
    watchOneContext?: boolean;
}

Type Parameters

  • Data = IAnything

    The type of data for the field.

  • Payload = IAnything

    The type of payload for the field.

Properties

className?: string

Retrieves the "className" property from an object of type PickProp<IField<Data, Payload>, "className">.

The input object containing the "className" property.

  • The value of the "className" property if present, otherwise undefined.

If the input object is not of the expected type.

element?: any

Retrieves the "element" property from the given object

The object to extract the "element" property from

  • The value of the "element" property
groupRef?: (element?: null | HTMLDivElement) => void

Represents a property of an object, where the key is "groupRef" and the value is of type PickProp<IField<Data, Payload>, "groupRef">.

name?: string

Type definition for the 'name' property of an object. The 'name' property is extracted from a specific type and is used to pick a specific property from that type.

The data type to extract the property from.

The type of the property to pick.

placeholder?: string

Type definition for the placeholder property of a field.

The type of data associated with the field.

The type of payload used for updating the field.

style?: any

Returns the style property of the given variable.

The type of the variable.

The type of the property to be picked.

The variable from which to pick the property.

The property to pick from the variable.

  • The picked property value.
sx?: any

Represents the 'sx' property of a PickProp.

The input field type.

The data type.

The payload type.

The input field.

  • The value of the 'sx' property.
watchOneContext?: boolean

Represents the contextual information for watching a single field in a data structure.