Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

React Components

Currently, no official <Button> component is defined mattermost-webapp. Most buttons are defined using inline jsx in the render() method.

Known Class Names

  • btn

    • btn-primary

    • btn-cancel

    • btn-link

Examples

Primary button inside of the <ConfirmModal> component (View code on GitHub)

Code Block
languagehtml
<button type="button" class="btn btn-primary" id="confirmModalButton">
  <span>Yes, set my status to "Online"</span>
</button>

Link button inside of the <ConfirmModal> component

Code Block
languagehtml
<button type="button" class="btn btn-link btn-cancel" id="cancelModalButton">
  <span>No, keep it as "Away"</span>
</button>