fast-switch

An implementation of a switch as a form-connected web-component.

Usage

Live Editor
Result
Theme DarkLight

Applying custom styles

import { customElement } from "@microsoft/fast-element";
import { Switch, SwitchTemplate as template } from "@microsoft/fast-foundation";
import { SwitchStyles as styles } from "./switch.styles";
@customElement({
name: "fast-switch",
template,
styles,
})
export class FASTSwitch extends Switch {}