Skip to content

Syntax for writing a dictionary of attributes onto an element #5071

Closed
@chanan

Description

@chanan

This issue is being opened by request of @SteveSandersonMS Please see the full issue details https://github.com/aspnet/Blazor/issues/735 in the Blazor Repo.

The summary is that will be nice to be able to pass arbitrary attributes from a custom component down to an HTML element. For example:

<MyComponent id="myid" />

in the component render it as:

<button id="myid" />

without having to code every single attribute possible. Not mention allowing attributes such data-* to be passed down.

Metadata

Metadata

Assignees

Labels

Components Big RockThis issue tracks a big effort which can span multiple issuesDoneThis issue has been fixedNeeds: DesignThis issue requires design work before implementating.area-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-razor-pages

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions