import * as React from 'react';
import { mergeStyleSets, DelayedRender, Callout, Text } from '@fluentui/react';
import { useBoolean, useId } from '@fluentui/react-hooks';
import { DefaultButton } from '@fluentui/react/lib/Button';
export const StatusCalloutExample: React.FunctionComponent = () => {
const [isCalloutVisible, { toggle: toggleIsCalloutVisible }] = useBoolean(false);
const buttonId = useId('callout-button');
return (
<>
{isCalloutVisible && (
This message is treated as an aria-live assertive status message, and will be read by a screen reader
regardless of focus.
)}
>
);
};
const styles = mergeStyleSets({
button: {
width: 130,
},
callout: {
width: 320,
padding: '20px 24px',
},
});