import { KnobInspector, KnobProvider } from '@fluentui/docs-components'; import { Divider, Flex, Header, Provider, RadioGroup, Text, teamsTheme, teamsDarkTheme, teamsHighContrastTheme, } from '@fluentui/react-northstar'; // @ts-ignore import pkg from '@fluentui/react-northstar/package.json'; import * as React from 'react'; import { KnobsSnippet } from './KnobsSnippet'; import { knobComponents } from './knobComponents'; const items = [ { key: 'light', label: 'Teams Light', value: 'teamsTheme', }, { key: 'dark', label: 'Teams Dark', value: 'teamsDarkTheme', }, { key: 'hc', label: 'Teams High Contrast', value: 'teamsHighContrastTheme', }, ]; const themes = { teamsTheme, teamsDarkTheme, teamsHighContrastTheme, }; export const SandboxApp: React.FunctionComponent = props => { const { children } = props; const [theme, setTheme] = React.useState(items[0].value); return ( {/* TODO: Load it in more React way */}
Fluent UI @ {pkg.version}

This example is powered by Fluent UI, check{' '} our docs {' '} and{' '} GitHub .

Select theme: setTheme(data.value as string)} checkedValue={theme} items={items} /> {knobs => knobs && ( <> {knobs} ) } {children}
); };