Open In App

Bulma Button States

Bulma Button state classes are used to style the button according to a specific state. Using Bulma state classes we can style the buttons like if it is being hovered or is in focus without triggering that state. 

Bulma Button State classes:



Syntax:

<button class="button">
    Button
</button>

Example1: The below example uses is-hovered, is-focused, and is-active classes to style the button.






<!DOCTYPE html>
<html>
  
<head>
    <title>Bulma Button States</title>
    <link rel='stylesheet' 
          href=
  
</head>
  
<body class="has-text-centered">
    <h1 class="is-size-2 has-text-success">
      GeeksforGeeks
    </h1>
    <b>Bulma Button States</b>
    <div class="container">
        <div>
            <span>Normal Button: </span>
          <button class="button">
            Normal
          </button>
        </div>
        <br>
        <div>
            <span>Hover State: </span>
          <button class="button is-hovered">
            Hover State
          </button>
        </div>
        <br>
        <div>
            <span>Focus State: </span>
          <button class="button is-focused">
            Focus State
          </button>
        </div>
        <br>
        <div>
            <span>Active State: </span>
          <button class="button is-active">
            Active State
          </button>
        </div>
        <br>
        <div>
            <span>Loading State: </span>
          <button class="button is-loading">
            Loading Button
          </button>
        </div>
        <br>
        <div>
            <span>Static State: </span>
          <button class="button is-static">
            Static Button</button>
        </div>
        <br>
        <div>
            <span>Disable State: </span>
          <button class="button" disabled>
              Disabled State
          </button>
        </div>
  
    </div>
</body>
</html>

Output:

Reference: https://bulma.io/documentation/elements/button/#states


Article Tags :