# extract_dict_elements_from_component_fields

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/utilities/clickup/extract_dict_elements_from_component_fields)

Extract elements from a dictionary.

## Signature

```python
extract_dict_elements_from_component_fields(
    data: dict,
    component: Type[Component],
) -> dict
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `data` | `dict` | Yes | The dictionary to extract elements from. |
| `component` | `Type[Component]` | Yes | The component to extract elements from. |

## Returns

`dict`

`dict` containing the elements from the input dictionary that are also in the
component.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/utilities/clickup.py#L179)