---json { "page_id": "pks7oxoyl8e18mftzlaw9" } --- ====== ComboStrap UI - Button ====== ===== About ===== ''Button'' is a [[docs:component|ComboStrap UI component]] that implements a ''button'' style. The only action attached is to navigate to another page. ===== Example ===== ==== Internal link ==== The ''button'' used by default is the [[:docs:theme:branding-colors|primary color]] configuration. [[:start|Go to ComboStrap]] ==== External Link and secondary type ==== * External [[docs:content:link|Link]] and a [[#type|secondary type]] [[https://combostrap.com/button|Go to this page via an external link]] ==== Spacing ==== * With [[docs:styling:spacing|spacing]] [[:start|Go to ComboStrap]] ==== Large button ==== * With the [[#size|size attribute]] [[:start|Go to ComboStrap]] ==== Colors ==== * With [[docs:styling:color|colors]] [[:start|Go to ComboStrap]] ==== Hover Animation ==== You can also add [[docs:animation:hover|hover animation]]. * Float [[:start|Go to ComboStrap]] * Zoom [[:start|Go to ComboStrap]] ===== Syntax ===== or where: * ''type'' defines the [[#type|default styling]] * ''size'' defines its [[#size]] * ''skin'' defines its [[#skin]] * ''elevation'' adds an [[#elevation|elevation]] The ''button'' component is a fully [[docs:marki|super set HTML component]] A ''button'' can be used: * in the page content * in a [[docs:block:card|card]] * in a [[docs:menubar:menubar|menubar]] ==== Type ==== The type of the button defines its styling: Primary (Default) Secondary Success Danger Warning Info Light Dark Link ''primary'' and ''secondary'' colors are [[:docs:theme:branding-colors|branding colors]] and can be configured: [[:docs:theme:branding-colors]] ==== Size ==== ''Button'' is a component that responds to the [[docs:styling:size|size attribute]] * small * medium (default) * large Large Medium Small ==== Skin ==== Control the more emphasis of your button by using the [[docs:styling:skin|skin attribute]] Extra High emphasis High emphasis Medium emphasis Low emphasis ==== Elevation ==== All [[docs:styling:styling|styling attribute]] are available but you may want to give more emphasis by adding a big shadow around the [[docs:block:block|box]] with the [[docs:styling:shadow|elevation attribute]] Large Elevated button ===== How to ? ===== ==== Center two buttons ==== Buttons are [[docs:content:content|inline elements]] which means that they can be added in a line and are therefore not a [[docs:block:block|block]]. If you want to center two buttons, you need to wrap them in a [[docs:layout:component:box|box]] element and center it. Example: [[#|Button 1]] [[#|Button 2]]