# UxmlElementAttribute

> Exposes a type of VisualElement to UXML and UI Builder

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

## UxmlElementAttribute()

Exposes a type of VisualElement to UXML and UI Builder

```csharp
public UxmlElementAttribute()
```

## UxmlElementAttribute(string)

Declares a custom control with a custom element name.

```csharp
public UxmlElementAttribute(string uxmlName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Provides a custom name for the element.

## UxmlElementAttribute(string, Type\[])

Declares a custom control with a custom element name and a list of supported child types.

```csharp
public UxmlElementAttribute(string uxmlName, params Type[] supportedTypes)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name to use for the element in UXML, such as `my-custom-element`.**** (\[Type\[]]\(https\://learn.microsoft.com/dotnet/api/system.type)): An array of supported child element types. This can be passed as individual `Type` arguments.
