Skip to content

Attribute

Render a csharp attribute.

Attribute: import(“@alloy-js/core”).Component<AttributeProps> & Required<Pick<import(“@alloy-js/core”).Component<AttributeProps>, “tag”>>## Example

<Attribute name="Test" /><hbr/>
<Attribute name="Test" args={["arg1", "arg2"]} />

will render:

[Test]
[Test("arg1", "arg2")]