> For the complete documentation index, see [llms.txt](https://playermaker.gitbook.io/componentbuilder/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://playermaker.gitbook.io/componentbuilder/english/html-attribute/buildattributes-method.md).

# BuildAttributes Method

For customization code to build html attribute of component

```csharp
protected override void BuildAttributes(IDictionary<string, object> attributes)
{
    if(HasClicked)
    {
        attributes["onclick"] = HtmlHelper.Event.Create(this, () => { /*...*/ });
    }
}
```
