import * as React from 'react'; import { keytipMap } from 'office-ui-fabric-react/lib/components/Keytip/examples/KeytipSetup'; import { Checkbox } from '@fluentui/react-next/lib/Checkbox'; import { ComboBox } from '@fluentui/react-next/lib/ComboBox'; import { Dropdown } from '@fluentui/react-next/lib/Dropdown'; import { Link } from '@fluentui/react-next/lib/Link'; import { SpinButton, ISpinButtonStyles } from '@fluentui/react-next/lib/SpinButton'; import { Toggle } from '@fluentui/react-next/lib/Toggle'; import { Pivot, PivotItem } from '@fluentui/react-next/lib/Pivot'; import { IStackTokens, Stack } from '@fluentui/react-next/lib/Stack'; import { useKeytipRef } from '@fluentui/react-next/lib/KeytipData'; const pivotItemStyle: React.CSSProperties = { width: 500, paddingTop: 20 }; const stackTokens: IStackTokens = { childrenGap: 20 }; const spinButtonStyles: Partial = { root: { maxWidth: 200 } }; const sampleOptions = [ { key: 'A', text: 'Option 1' }, { key: 'B', text: 'Option 2' }, { key: 'C', text: 'Option 3' }, ]; export const KeytipsBasicExample: React.FunctionComponent = () => { const checkboxRef = useKeytipRef({ keytipProps: keytipMap.CheckboxKeytip }); const linkRef = useKeytipRef({ keytipProps: keytipMap.LinkKeytip }); const toggleRef = useKeytipRef({ keytipProps: keytipMap.ToggleKeytip }); return (

For Pivots, keytips will first show for each of the pivots. After selecting a pivot, the Keytips for its content are shown.

Go to{' '} Bing
); };