# decorator

> The decorator that draws the override indicator bar, binding affordances, and context menu for this field.

## Definition

* **Type:** Property
* **Namespace:** [Unity.UIToolkit.Editor](/engine/6000.7/script-reference/unity/uitoolkit/editor.md)
* **Assembly:** UnityEditor

```csharp
public UxmlAttributeFieldDecorator decorator { get; }
```

### Remarks

Additional Resources: [UxmlAttributeFieldDecorator](/engine/6000.7/script-reference/unity/uitoolkit/editor/uxmlattributefielddecorator.md)

The following example reaches the decorator to add an action button next to the field.

### Examples

```csharp
var field = new UxmlAttributeField(property.FindPropertyRelative("text"));
field.decorator.Add(new Button(() => field.label = "Text Content") { text = "Reset label" });
container.Add(field);
```
