# Component

Invokes a custom tag.

## Component Signature

```
<bx:Component template=[string]
name=[string] />
```

### Attributes

| Atrribute  | Type     | Required | Description                                                                                                                                                                                            | Default |
| ---------- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------- |
| `template` | `string` | `false`  | Mutually exclusive with the name attribute. A path to the template that implements the tag.                                                                                                            |         |
| `name`     | `string` | `false`  | <p>Mutually exclusive with the template attribute. A custom tag name, in the form "Name.Name.Name..." Identifies subdirectory, under<br>the tag root directory, that contains custom tag template.</p> |         |

## Examples

### Script Syntax

```java
component displayname="Script Widget" output="false" { 
 // functions and properties here 
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://boxlang.ortusbooks.com/boxlang-language/reference/components/system/component.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
