Skip to content

Commit c9229f3

Browse files
authored
Clarify conditional attributes (dotnet#12926)
1 parent 7813836 commit c9229f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aspnetcore/blazor/components.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,11 +667,11 @@ Razor directives are shown in the following table.
667667
| [\@namespace](xref:mvc/views/razor#section-6) | Sets the namespace of the generated component class. |
668668
| [\@attribute](xref:mvc/views/razor#section-7) | Adds an attribute to the generated component class. |
669669

670-
**Conditional attributes**
670+
**Conditional HTML element attributes**
671671

672-
Attributes are conditionally rendered based on the .NET value. If the value is `false` or `null`, the attribute isn't rendered. If the value is `true`, the attribute is rendered minimized.
672+
HTML element attributes are conditionally rendered based on the .NET value. If the value is `false` or `null`, the attribute isn't rendered. If the value is `true`, the attribute is rendered minimized.
673673

674-
In the following example, `IsCompleted` determines if `checked` is rendered in the control's markup:
674+
In the following example, `IsCompleted` determines if `checked` is rendered in the element's markup:
675675

676676
```cshtml
677677
<input type="checkbox" checked="@IsCompleted" />

0 commit comments

Comments
 (0)