# VisualElementComponentAttribute(bool)

> Initializes a new instance of the VisualElementComponentAttribute class.

## Definition

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

```csharp
public VisualElementComponentAttribute(bool exposeToUxml = true)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether the component can be authored in UXML. Defaults to `true`.
