-
Notifications
You must be signed in to change notification settings - Fork 5
Button
lavamore edited this page Jun 27, 2018
·
14 revisions
A button is going to trigger an action.
-
Prefix:
btn -
Default
Default Name Description Button btnA standard button, as default -
Attributes
Attributes Name Description Primary primaryPrimary button Secondary secondarySecondary button Basic basicBasic design of a button with a frame Labeled labeledA Button that have a label Group buttonsButtons can exist together as a group Horizontal horizontalHorizontally grouped buttons Vertical verticalVertically grouped buttons Up upA button with no bottom border radius Down downA button with no top border radius Center centerA button with no border radius Left leftA button with no right border radius Right rightA button with no left border radius Small smallSmall button Medium mediumMedium button, default size Large largeLarger button
- Default Button
-
Example
<div class = "btn"></div>
- Primary Button
-
Example
<div class = "primary btn"></div>
- Secondary Button
-
Example
<div class = "secondary btn"></div>
- Simple design of a button
-
Example
<div class = "basic btn"></div>
-
Example
- button with only icon
-
Example
<div class = "basic btn"> <i class = "icon cloud"></i> </div>
- button with text and icon
-
Example
<div class = "basic btn"> <i class = "left icon cloud"></i> cloud </div> <div class = "basic btn"> cloud <i class = "right icon cloud"></i> </div>
- A button with label on its left
-
Example
<div class = "labeled btn"> <div class = "basic button"> <i class = "left icon mail"></i> mail </div> <div class = "label">receive</div> </div>
-
Example
-
Example
- Buttons can exist together as a group
-
Example
- horizontal grouped buttons
<div class = "horizontal buttons"> <div class = "basic left btn">Left</div> <div class = "basic center btn">Center</div> <div class = "basic right btn">Right</div> </div>
- vertical grouped buttons
<div class = "vertical buttons"> <div class = "basic up btn">Up</div> <div class = "basic center btn">Center</div> <div class = "basic down btn">Down</div> </div>
- Set grouped variations
<div class = "red large horizontal buttons"> <div class = "btn">Left</div> <div class = "btn">Center</div> <div class = "btn">Right</div> </div>
- A button can have an icon
-
Example
<div class="horizontal buttons"> <div class="left btn"><i class="mail icon"></i></div> <div class="center btn"><i class="heart icon"></i></div> <div class="right btn"><i class="cloud icon"></i></div> </div>
-
Example
-
Example
-
Example
- A button can have different colors
-
Example
<button class="red btn">Red</button> <button class="orange btn">Orange</button> <button class="yellow btn">Yellow</button> <button class="olive btn">Olive</button> <button class="green btn">Green</button> <button class="teal btn">Teal</button> <button class="blue btn">Blue</button> <button class="violet btn">Violet</button> <button class="purple btn">Purple</button> <button class="pink btn">Pink</button> <button class="brown btn">Brown</button> <button class="grey btn">Grey</button> <button class="black btn">Black</button>
- A button can have different sizes
-
Example
<button class="small btn">Small</button> <button class="medium btn">Medium</button> <button class="large btn">Large</button>
-
Example
-
Example
<div class = "positive btn">Positive</div>
-
Example
<div class = "Negative btn">Negative</div>
-
Example
-
Example
-
Example
-
Example
Designed and built with all the love in the world by @toolbuddy. Maintained by the core team with the help of our contributors. Currently v0.0.1. Code licensed MIT, docs CC BY 3.0.
- Getting Started
- Introduction
- Globals
- Layouts
- Elements
- Displays
- Modules
- Feedback (Update soon.)