Buttons Guide

Buttons

Buttons Color
               
Buttons Size
        
Buttons Icons
      

Explanation

  1. To create a button simply add the class .uk-button to your element

    1. <a class="uk-button" href="">Button 1</a>
    2. <button class="uk-button">Button 2</button>
    BUTTON 1 

  2. To set the color simply add one of the following classes

    CLASSDESCRIPTION
    .uk-button-defaultTo apply the White color to the button
    .uk-button-primaryTo apply the Blue color to the button
    .uk-button-secondaryTo apply the Black color to the button
    .uk-button-warningTo apply the Orange color to the button
    .uk-button-successTo apply the Green color to the button
    .uk-button-dangerTo apply the Red color to the button
    1. <button class="uk-button uk-button-default">White</button>
    2. <button class="uk-button uk-button-primary">Blue</button>
    3. <button class="uk-button uk-button-secondary">Black</button>
    4. <button class="uk-button uk-button-warning">Orange</button>
    5. <button class="uk-button uk-button-success">Green</button>
    6. <button class="uk-button uk-button-danger">Red</button>
                   

  3. Size of buttons is normal by default. To change it simply add one of the following classes

    CLASSDESCRIPTION
    .uk-button-smallTo apply the Small size to the button
    .uk-button-largeTo apply the Large size to the button
    1. <button class="uk-button uk-button-warning uk-button-small">Small</button>
    2. <button class="uk-button uk-button-secondary">Normal</button>
    3. <button class="uk-button uk-button-primary uk-button-large">Large</button>
              

  4. Buttons with some icons

    1. <button class="uk-button uk-button-success"><span data-uk-icon="list"></span>Button With Icon</button>
    2. <button class="uk-button uk-button-danger"><span data-uk-icon="trash"></span>Delete</button>
    3. <button class="uk-button uk-button-default"><span data-uk-icon="cog"></span>Settings</button>
            
Ads go here

Comments

Archive

Labels

Contact Form

Send