Open In App

Semantic-UI Button Compact Variations

Semantic UI Button offers several types of micro button components like Types, Groups, Content, States, Variations, and Group Variations.

The Button variations have different kinds of buttons such as Social, Different Size, Floated, Colored, Compact, Toggle, Positive, Negative, Fluid, Circular, Vertically and Horizontally attached buttons. In this article, we will learn about the 



Semantic-UI Button Variations Compact Buttons Class:

Syntax:



<button class="compact ui button">
  ...
</button>

Below example illustrates the Semantic-UI Button Variations Compact Buttons:

Example:




<!DOCTYPE html>
<html>
    <head>
        <title>Semantic UI</title>
        <link href=
        rel="stylesheet" />
    </head>
    <body>
        <center>
            <h1>GeeksforGeeks</h1>
            <strong>Semantic UI Button Variations Compact Buttons</strong>
            <br><br>
            <strong>Compact Buttons:</strong>
            <button class="ui compact blue button">
              Sell
            </button>
            <button class="ui compact green button">
              Buy
            </button>
            <br><br>
            <strong>Compact labeled icon Buttons:</strong>
            <button class="ui compact labeled icon button">
              <i class="play icon"></i>
              Pause
            </button>
            <button class="ui compact labeled icon button">
              <i class="pause icon"></i>
              Pause
            </button>
              
  
        </center>
    </body>
</html>

Output:

Semantic-UI Button Variations Compact Buttons

Reference: https://semantic-ui.com/elements/button.html#compact


Article Tags :