Buttons Guide
Buttons
Buttons Color
Buttons Size
Buttons Icons
Explanation
To create a button simply add the class
.uk-buttonto your element- <a class="uk-button" href="">Button 1</a>
- <button class="uk-button">Button 2</button>
To set the color simply add one of the following classes
CLASS DESCRIPTION .uk-button-defaultTo apply the Whitecolor to the button.uk-button-primaryTo apply the Bluecolor to the button.uk-button-secondaryTo apply the Blackcolor to the button.uk-button-warningTo apply the Orangecolor to the button.uk-button-successTo apply the Greencolor to the button.uk-button-dangerTo apply the Redcolor to the button- <button class="uk-button uk-button-default">White</button>
- <button class="uk-button uk-button-primary">Blue</button>
- <button class="uk-button uk-button-secondary">Black</button>
- <button class="uk-button uk-button-warning">Orange</button>
- <button class="uk-button uk-button-success">Green</button>
- <button class="uk-button uk-button-danger">Red</button>
Size of buttons is normal by default. To change it simply add one of the following classes
CLASS DESCRIPTION .uk-button-smallTo apply the Smallsize to the button.uk-button-largeTo apply the Largesize to the button- <button class="uk-button uk-button-warning uk-button-small">Small</button>
- <button class="uk-button uk-button-secondary">Normal</button>
- <button class="uk-button uk-button-primary uk-button-large">Large</button>
Buttons with some icons
- <button class="uk-button uk-button-success"><span data-uk-icon="list"></span>Button With Icon</button>
- <button class="uk-button uk-button-danger"><span data-uk-icon="trash"></span>Delete</button>
- <button class="uk-button uk-button-default"><span data-uk-icon="cog"></span>Settings</button>
Ads go here
Comments