JSPM

@fluentui/react-message-bar

0.0.0-nightly-20250307-0407.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 226619
  • Score
    100M100P100Q167956F
  • License MIT

Fluent UI MessageBar component

Package Exports

    Readme

    @fluentui/react-message-bar

    The MessageBar component communicates important information about the state of the entire application or surface. For example, the status of a page, panel, dialog or card. The information shouldn't require someone to take immediate action, but should persist until the user performs one of the required actions.

    import { MessageBar, MessageBarTitle, MessageBarBody, Button } from '@fluentui/react-components';
    import { DismissRegular } from '@fluentui/react-icons';
    
    function Example() {
      return (
        <MessageBar>
          <MessageBarBody>
            <MessageBarTitle>Descriptive title</MessageBarTite>
            This is a message bar
    
            <MessageBarActions containerAction={<Button arial-label="dismiss" icon={<DismissReguladr />} />}>
              <Button>Action</Button>
              <Button>Action</Button>
            </MessageBarActions>
          </MessageBarBody>
        </MessageBar>
      )
    }