Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
An implementation of a switch as a form-connected web-component.
fluent-switch
Setup
import {
provideFluentDesignSystem,
fluentSwitch
} from "@fluentui/web-components";
provideFluentDesignSystem()
.register(
fluentSwitch()
);
Customizing the indicator
import {
provideFluentDesignSystem,
fluentSwitch
} from "@fluentui/web-components";
provideFluentDesignSystem()
.register(
fluentSwitch({
switch: `...your switch indicator...`
})
);
Example
Please see the Blazor documentation and demo site for more information.