import * as React from 'react'; import { Callout, Link, mergeStyleSets, Text, FontWeights } from '@fluentui/react'; import { useBoolean, useId } from '@fluentui/react-hooks'; import { DefaultButton } from '@fluentui/react/lib/Button'; export const CalloutBasicExample: React.FunctionComponent = () => { const [isCalloutVisible, { toggle: toggleIsCalloutVisible }] = useBoolean(false); const buttonId = useId('callout-button'); const labelId = useId('callout-label'); const descriptionId = useId('callout-description'); return ( <> {isCalloutVisible && ( Callout title here Message body is optional. If help documentation is available, consider adding a link to learn more at the bottom. Sample link )} ); }; const styles = mergeStyleSets({ button: { width: 130, }, callout: { width: 320, padding: '20px 24px', }, title: { marginBottom: 12, fontWeight: FontWeights.semilight, }, link: { display: 'block', marginTop: 20, }, });