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 |
---|
|
<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 |
---|
|
<button type="button" class="btn btn-link btn-cancel" id="cancelModalButton">
<span>No, keep it as "Away"</span>
</button> |