Props & events

Attributes & behavior classes

Intent color (default primary, .switch-success/warning/danger/info/subtle) and style (.switch-outline, .switch-text) configure appearance.

Attribute / classPurpose
checkedNative attribute on .switch-input — sets the initial on/off state
aria-disabled="true"Paired with the native disabled attribute for a disabled control
role="switch"Required on the native input for correct assistive-tech semantics

Events

flickui.js listens for the native change event and mirrors it onto the wrapper as a class.

EventDescription
change (native)The underlying input fires a normal change event; flickui.js reacts by toggling .is-on and syncing aria-checked.