Skip to content
IzzyBlazor 0.1.0-alpha.17

Enter all results ↑ ↓ move Esc close

Switch

An on/off switch that posts like a checkbox.

IzzyBlazor.Switch in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.17 assembly and its doc comments.

Properties (5)

ChildContentRenderFragment?From Checkbox

Rich label content, such as text with a link. Overrides Label.

ControlPositionControlPosition = ControlPosition.StartFrom Checkbox

Which side of the label the box or switch sits on. End puts it at the end of the row, with the hint and errors under the label, as in a list of settings. Defaults to Start.

IconIconData?From Checkbox

An icon before the label, such as a key for a security setting. With ControlPosition.End it's centered on the label and hint, at the start of the row. Decorative: screen readers read only the label. Use icons on every row of a group or none.

@bind-Valuebool = false

The value, bound with @bind-Value.

DisplayNamestring?

The field's name in validation messages from the input itself, such as a value that can't be parsed.

Events (0)

No events.

Types (1)

ControlPosition

enum

Which side of its label a checkbox or switch sits on.

ControlPosition values
ValueDescription
Start

Before the label (the default).

End

After the label, at the end of the row, with the hint under the label. For settings lists of switches.