mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-27 03:54:13 +03:00
147 lines
5.0 KiB
Markdown
147 lines
5.0 KiB
Markdown
---
|
|
layout: docs
|
|
title: Buttons
|
|
group: material-design
|
|
---
|
|
|
|
## Contents
|
|
|
|
* Will be replaced with the ToC, excluding the "Contents" header
|
|
{:toc}
|
|
|
|
## Flat
|
|
|
|
{% example html %}
|
|
<button type="button" class="btn btn-primary">Primary</button>
|
|
<button type="button" class="btn btn-secondary">Secondary</button>
|
|
<button type="button" class="btn btn-success">Success</button>
|
|
<button type="button" class="btn btn-info">Info</button>
|
|
<button type="button" class="btn btn-warning">Warning</button>
|
|
<button type="button" class="btn btn-danger">Danger</button>
|
|
<button type="button" class="btn btn-link">Link</button>
|
|
<button type="button" class="btn"><code>btn</code> only</button>
|
|
<button type="button" class="btn active"><code>.active</code></button>
|
|
{% endexample %}
|
|
|
|
### Disabled
|
|
|
|
{% example html %}
|
|
<fieldset disabled>
|
|
<button type="button" class="btn"><code>btn</code> only</button>
|
|
<button type="button" class="btn btn-primary">Primary</button>
|
|
<button type="button" class="btn btn-secondary">Secondary</button>
|
|
<button type="button" class="btn btn-success">Success</button>
|
|
<button type="button" class="btn btn-info">Info</button>
|
|
<button type="button" class="btn btn-warning">Warning</button>
|
|
<button type="button" class="btn btn-danger">Danger</button>
|
|
<button type="button" class="btn btn-link">Link</button>
|
|
</fieldset>
|
|
{% endexample %}
|
|
|
|
## Raised
|
|
|
|
{% example html %}
|
|
<button type="button" class="btn btn-raised btn-primary">Primary</button>
|
|
<button type="button" class="btn btn-raised btn-secondary">Secondary</button>
|
|
<button type="button" class="btn btn-raised btn-success">Success</button>
|
|
<button type="button" class="btn btn-raised btn-info">Info</button>
|
|
<button type="button" class="btn btn-raised btn-warning">Warning</button>
|
|
<button type="button" class="btn btn-raised btn-danger">Danger</button>
|
|
<button type="button" class="btn btn-raised btn-link">Link</button>
|
|
<button type="button" class="btn btn-raised active"><code>.active</code></button>
|
|
{% endexample %}
|
|
|
|
### Disabled
|
|
{% example html %}
|
|
<fieldset disabled>
|
|
<button type="button" class="btn btn-raised btn-secondary">Secondary</button>
|
|
<button type="button" class="btn btn-raised btn-success">Success</button>
|
|
<button type="button" class="btn btn-raised btn-primary">Primary</button>
|
|
<button type="button" class="btn btn-raised btn-info">Info</button>
|
|
<button type="button" class="btn btn-raised btn-warning">Warning</button>
|
|
<button type="button" class="btn btn-raised btn-danger">Danger</button>
|
|
<button type="button" class="btn btn-raised btn-link">Link</button>
|
|
</fieldset>
|
|
{% endexample %}
|
|
|
|
## Floating Action
|
|
|
|
{% example html %}
|
|
<button type="button" class="btn btn-primary mdb-btn-fab">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
<button type="button" class="btn btn-secondary mdb-btn-fab">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
<button type="button" class="btn btn-success mdb-btn-fab">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
<button type="button" class="btn btn-info mdb-btn-fab">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
<button type="button" class="btn btn-warning mdb-btn-fab">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
<button type="button" class="btn btn-danger mdb-btn-fab">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
<button type="button" class="btn btn-danger mdb-btn-fab active">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
{% endexample %}
|
|
|
|
### Disabled
|
|
{% example html %}
|
|
<fieldset disabled>
|
|
<button type="button" class="btn btn-primary mdb-btn-fab">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
<button type="button" class="btn btn-secondary mdb-btn-fab">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
<button type="button" class="btn btn-success mdb-btn-fab">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
<button type="button" class="btn btn-info mdb-btn-fab">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
<button type="button" class="btn btn-warning mdb-btn-fab">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
<button type="button" class="btn btn-danger mdb-btn-fab">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
</fieldset>
|
|
{% endexample %}
|
|
|
|
### Sizes
|
|
|
|
Using `mdb-btn-fab-sm` on the button, or using `btn-group-sm` on the enclosing element of a `mdb-btn-fab` renders a small variation.
|
|
|
|
{% example html %}
|
|
<span class="btn-group-lg">
|
|
<button type="button" class="btn btn-danger mdb-btn-fab">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
</span>
|
|
<button type="button" class="btn btn-danger mdb-btn-fab">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
<button type="button" class="btn btn-danger mdb-btn-fab mdb-btn-fab-sm">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
<span class="btn-group-sm">
|
|
<button type="button" class="btn btn-danger mdb-btn-fab">
|
|
<i class="material-icons">grade</i>
|
|
</button>
|
|
</span>
|
|
{% endexample %}
|
|
|
|
|
|
## Sizes
|
|
{% example html %}
|
|
<button type="button" class="btn btn-raised btn-lg">Large button</button>
|
|
<button type="button" class="btn btn-raised">Default button</button>
|
|
<button type="button" class="btn btn-raised btn-sm">Small button</button>
|
|
{% endexample %}
|