HTML
CSS
JavaScript
play_arrow
HTML
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>Snackbar - 普通 Snackbar</title>
  <link rel="stylesheet" href="../assets/mdui-v0.3.0/css/mdui.min.css"/>
</head>
<body class="mdui-theme-accent-pink">

<div class="mdui-container">
  <button class="mdui-btn mdui-color-theme-accent" id="open">open</button>
</div>

<script src="../assets/mdui-v0.3.0/js/mdui.min.js"></script>
</body>
</html>
CSS

    
JavaScript
var $$ = mdui.JQ;

$$('#open').on('click', function () {
  mdui.snackbar({
    message: 'Message sent'
  });
});