import * as React from 'react'; import { SignalField, YouCheckedOutSignal, MalwareDetectedSignal, BlockedSignal, MissingMetadataSignal, WarningSignal, AwaitingApprovalSignal, TrendingSignal, SomeoneCheckedOutSignal, NewSignal, LiveEditSignal, MentionSignal, CommentsSignal, UnseenReplySignal, UnseenEditSignal, ReadOnlySignal, SharedSignal, EmailedSignal, RecordSignal, NeedsRepublishingSignal, ItemScheduledSignal, DesktopSignal, DocumentsSignal, PicturesSignal, } from '@fluentui/react-experiments'; import { Checkbox, ChoiceGroup, IChoiceGroupOption, css } from '@fluentui/react'; import { lorem } from '@fluentui/example-data'; import * as SignalStylesModule from '@fluentui/react-experiments/lib/components/signals/Signal.scss'; import * as SignalsExampleStylesModule from './Signals.Example.scss'; const SignalStyles: any = SignalStylesModule; const SignalsExampleStyles: any = SignalsExampleStylesModule; interface ISignalExampleProps { name: string; signal: React.ReactNode; text?: string; } const SignalExample: React.FunctionComponent = (props: ISignalExampleProps): JSX.Element => { const { text = lorem(4) } = props; return (

{props.name}

{text}
); }; export interface ISignalsBasicExampleState { fontSize: 'small' | 'medium' | 'large'; isDark: boolean; } export class SignalsBasicExample extends React.Component<{}, ISignalsBasicExampleState> { constructor(props: {}) { super(props); this.state = { fontSize: 'small', isDark: false, }; } public render(): JSX.Element | null { const { fontSize, isDark } = this.state; return (

} /> } /> } /> } /> } /> } /> } /> } /> } /> } text="O" /> } /> } /> } /> 2} /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } />
); } private _onFontSizeChoiceChanged = (ev: any, option?: IChoiceGroupOption): void => { this.setState({ fontSize: option?.key as ISignalsBasicExampleState['fontSize'], }); }; private _onIsDarkChanged = (ev: React.FormEvent, checked: boolean): void => { this.setState({ isDark: checked, }); }; }