ChipAction record Core
A small action a Chip offers as an icon button while it is hovered or holds the focus (a filter funnel, "more"). Assistive technology finds the button at all times.
public sealed record ChipAction
- Namespace
- ArionUI.Presentation.Controls
- Package
- ArionUI.Presentation ·
dotnet add package ArionUI.Presentation --prerelease
Constructors
ChipAction
public ChipAction(Action<IRenderSurface, LogRect, Rgba> Icon, Func<string> Spoken, Action Run);A small action a Chip offers as an icon button while it is hovered or holds the focus (a filter funnel, "more"). Assistive technology finds the button at all times.
Parameters
IconThe icon, drawn in the button's text colour.
SpokenWhat a reader calls the action; also its tooltip.
RunWhat the action does.
Properties
Accent
public bool Accent { get; init; }Draws the button on the accent tint (class accent) - an action that is in effect, a filter that is set.
Icon
public Action<IRenderSurface, LogRect, Rgba> Icon { get; init; }The icon, drawn in the button's text colour.
Run
public Action Run { get; init; }What the action does.
Spoken
public Func<string> Spoken { get; init; }What a reader calls the action; also its tooltip.