---
title: "getComponent"
canonical: "https://support.appfire.com/space/PSJ/15489949/getComponent"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getComponent(projectKey, componentName) | **Package** | adm |
| **Alias** | admGetProjectComponent(projectKey, componentName) //deprecated | **Pkg Usage** | getComponent(projectKey, componentName) |

## Description

> Macro (excerpt)
> 
> Returns a JComponent structure for a specified project and component name.

Returns a JComponent structure for a specified project and component name.  

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| projectKey | String | Yes | Project key. |
| componentName | String | Yes | Name of the component. |

## Return Type

**[JComponent](https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15487117)**

## Example

```
admGetProjectComponent("TEST", "sil");
```

Returns a JComponent structure for the **sil** component in the **TEST** project.

## See also

> Macro (contentbylabel)