Tag
Namespace: SlottyMedia.Components.Partial
public class Tag : Microsoft.AspNetCore.Components.ComponentBase, Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleEvent, Microsoft.AspNetCore.Components.IHandleAfterRender
Inheritance Object → ComponentBase → Tag
Implements IComponent, IHandleEvent, IHandleAfterRender
Properties
ChildContent
This component represents a tag.
public RenderFragment ChildContent { get; set; }
Property Value
RenderFragment
Exceptions
ArgumentException
If an illegal color was provided.
Color
The tag's color. Should be one of 'savoy-blue', 'grape', 'fandango', 'crayola-orange', 'jasmine'. Default is 'fandango'.
public string Color { get; set; }
Property Value
Class
Additional CSS classes to apply to the outermost container of this component.
public string Class { get; set; }
Property Value
OnClick
An event that is triggered when this tag is clicked.
public EventCallback OnClick { get; set; }
Property Value
EventCallback
Constructors
Tag()
public Tag()
Methods
BuildRenderTree(RenderTreeBuilder)
protected void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder RenderTreeBuilder