import * as React from 'react'; import { IToggleTokens, Toggle } from '@uifabric/experiments'; const tokens1: IToggleTokens = { pillHoveredBackground: 'black', textColor: 'red', }; const tokens2: IToggleTokens = { pillBackground: 'orange', pillJustifyContent: 'center', textColor: 'purple', thumbBackground: 'green', }; const tokens3: IToggleTokens = { pillBackground: 'dimgrey', pillBorderColor: 'brown', textColor: 'darkred', }; export class ToggleTokensObjectExample extends React.Component<{}, {}> { public render(): JSX.Element { return (
); } private _onChange(ev: React.MouseEvent, checked: boolean) { console.log('toggle is ' + (checked ? 'checked' : 'not checked')); } }