2015-12-16 04:31:21 +03:00
|
|
|
---
|
|
|
|
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>
|
2015-12-16 23:38:44 +03:00
|
|
|
<button type="button" class="btn btn-secondary">Secondary</button>
|
2015-12-16 04:31:21 +03:00
|
|
|
<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>
|
2015-12-17 02:19:02 +03:00
|
|
|
<button type="button" class="btn"><code>btn</code> only</button>
|
|
|
|
<button type="button" class="btn active"><code>.active</code></button>
|
2015-12-16 04:31:21 +03:00
|
|
|
{% 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>
|
2015-12-16 23:38:44 +03:00
|
|
|
<button type="button" class="btn btn-secondary">Secondary</button>
|
2015-12-16 04:31:21 +03:00
|
|
|
<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>
|
2015-12-16 23:38:44 +03:00
|
|
|
<button type="button" class="btn btn-raised btn-secondary">Secondary</button>
|
2015-12-16 04:31:21 +03:00
|
|
|
<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>
|
2015-12-17 02:19:02 +03:00
|
|
|
<button type="button" class="btn btn-raised active"><code>.active</code></button>
|
2015-12-16 04:31:21 +03:00
|
|
|
{% endexample %}
|
|
|
|
|
|
|
|
### Disabled
|
|
|
|
{% example html %}
|
|
|
|
<fieldset disabled>
|
2015-12-16 23:38:44 +03:00
|
|
|
<button type="button" class="btn btn-raised btn-secondary">Secondary</button>
|
2015-12-16 04:31:21 +03:00
|
|
|
<button type="button" class="btn btn-raised btn-success">Success</button>
|
2015-12-16 23:38:44 +03:00
|
|
|
<button type="button" class="btn btn-raised btn-primary">Primary</button>
|
2015-12-16 04:31:21 +03:00
|
|
|
<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 %}
|
|
|
|
|
2016-01-08 01:17:34 +03:00
|
|
|
### 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 %}
|
|
|
|
|
2015-12-16 04:31:21 +03:00
|
|
|
## Floating Action
|
|
|
|
|
|
|
|
{% example html %}
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-primary mdb-btn-fab">
|
2015-12-16 04:31:21 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-secondary mdb-btn-fab">
|
2015-12-16 04:31:21 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-success mdb-btn-fab">
|
2015-12-16 04:31:21 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-info mdb-btn-fab">
|
2015-12-16 04:31:21 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-warning mdb-btn-fab">
|
2015-12-16 04:31:21 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-danger mdb-btn-fab">
|
2015-12-16 04:31:21 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-danger mdb-btn-fab active">
|
2015-12-17 19:04:08 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
2015-12-16 04:31:21 +03:00
|
|
|
{% endexample %}
|
|
|
|
|
|
|
|
### Disabled
|
|
|
|
{% example html %}
|
|
|
|
<fieldset disabled>
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-primary mdb-btn-fab">
|
2015-12-16 04:31:21 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-secondary mdb-btn-fab">
|
2015-12-16 04:31:21 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-success mdb-btn-fab">
|
2015-12-16 04:31:21 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-info mdb-btn-fab">
|
2015-12-16 04:31:21 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-warning mdb-btn-fab">
|
2015-12-16 04:31:21 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-danger mdb-btn-fab">
|
2015-12-16 04:31:21 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
</fieldset>
|
|
|
|
{% endexample %}
|
|
|
|
|
2015-12-21 19:28:56 +03:00
|
|
|
### Sizes
|
|
|
|
|
2015-12-23 23:12:39 +03:00
|
|
|
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.
|
2015-12-21 19:28:56 +03:00
|
|
|
|
2015-12-16 04:31:21 +03:00
|
|
|
{% example html %}
|
2015-12-21 19:28:56 +03:00
|
|
|
<span class="btn-group-lg">
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-danger mdb-btn-fab">
|
2015-12-16 04:31:21 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
2015-12-21 19:28:56 +03:00
|
|
|
</span>
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-danger mdb-btn-fab">
|
2015-12-21 19:28:56 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-danger mdb-btn-fab mdb-btn-fab-sm">
|
2015-12-21 19:28:56 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
<span class="btn-group-sm">
|
2015-12-23 23:12:39 +03:00
|
|
|
<button type="button" class="btn btn-danger mdb-btn-fab">
|
2015-12-17 19:04:08 +03:00
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
2015-12-21 19:28:56 +03:00
|
|
|
</span>
|
2015-12-16 04:31:21 +03:00
|
|
|
{% endexample %}
|
|
|
|
|
|
|
|
|
2016-01-08 01:17:34 +03:00
|
|
|
## Icon
|
|
|
|
|
2015-12-16 04:31:21 +03:00
|
|
|
{% example html %}
|
2016-01-08 01:17:34 +03:00
|
|
|
<button type="button" class="btn btn-primary mdb-btn-icon">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-secondary mdb-btn-icon">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-success mdb-btn-icon">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-info mdb-btn-icon">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-warning mdb-btn-icon">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-danger mdb-btn-icon">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-danger mdb-btn-icon active">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
{% endexample %}
|
|
|
|
|
|
|
|
### Disabled
|
|
|
|
{% example html %}
|
|
|
|
<fieldset disabled>
|
|
|
|
<button type="button" class="btn btn-primary mdb-btn-icon">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-secondary mdb-btn-icon">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-success mdb-btn-icon">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-info mdb-btn-icon">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-warning mdb-btn-icon">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-danger mdb-btn-icon">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
</fieldset>
|
|
|
|
{% endexample %}
|
|
|
|
|
|
|
|
### Sizes
|
|
|
|
|
|
|
|
Using `mdb-btn-icon-sm` on the button, or using `btn-group-sm` on the enclosing element of a `mdb-btn-icon` renders a small variation.
|
|
|
|
|
|
|
|
{% example html %}
|
|
|
|
<button type="button" class="btn mdb-btn-icon">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
<button type="button" class="btn mdb-btn-icon mdb-btn-icon-sm">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
<span class="btn-group-sm">
|
|
|
|
<button type="button" class="btn mdb-btn-icon">
|
|
|
|
<i class="material-icons">grade</i>
|
|
|
|
</button>
|
|
|
|
</span>
|
2015-12-16 04:31:21 +03:00
|
|
|
{% endexample %}
|