The button comes in multiple flavors, all demonstrated below. The simplest button is the default, known as regular or action button:
This markup:
<uif-button>Click Me!</uif-button>
Renders this:
Click Me!
You can also change the type of the button by specifying one of the following types in the button's uif-type
attribute:
All buttons can be disabled by simply adding a disabled
attribute to the button's opening elemnt.
Buttons are rendered as <button>
elements by default. However if you include a ng-href=""
attribute to the opening button element, the directive will render the button as a <a>
element instead.
This markup:
<uif-button uif-type="primary">Click Me!</uif-button>Renders this:
This markup:
<uif-button uif-type="command"> <uif-icon uif-type="plus"></uif-icon> Click Me! </uif-button>Renders this:
This markup:
<uif-button uif-type="compound"> Click Me! <uif-button-description>a button with a description</uif-button-description> </uif-button>Renders this:
This markup:
<uif-button uif-type="hero"> <uif-icon uif-type="plus"></uif-icon> Click Me! </uif-button>Renders this: