---
description: 生成 aria-{name}="{value}" 的 HTML 属性
---

# HtmlAria Atrribute

```csharp
[Parameter][HtmlAria]public string? By { get; set; }
```

```cshtml
<Component By="label"/>

<div aria-by="label"></div>
```

