The Button component wraps a <button>, <input type="button"> or <a> element, and exposes the standard attributes of those elements as properties, which you can use with data binding, for example.
"button": {
"prototype": "digit/ui/button.reel",
"properties": {
"element": {"#": "button"}
}
}<button data-montage-id="button">Button</button>label- Label of the button.
digit-Button--glass- Turns a button into a background/border-less square.
.digit-Button- The Button element
.digit-Button {
background-color: pink;
}The ButtonGroup component wraps multiple Buttons and groups them together.
"button-1": {
"prototype": "digit/ui/button.reel",
"properties": {
"element": {"#": "button-1"}
}
}
"button-2": {
"prototype": "digit/ui/button.reel",
"properties": {
"element": {"#": "button-2"}
}
}
"button-3": {
"prototype": "digit/ui/button.reel",
"properties": {
"element": {"#": "button-3"}
}
}<span class="digit-ButtonGroup">
<button data-montage-id="button-1">1</button>
<button data-montage-id="button-2">2</button>
<button data-montage-id="button-3">3</button>
</span>- None - The ButtonGroup only adds styling
.digit-ButtonGroup- The wrapper that holds multipleButtons.
.digit-ButtonGroup {
border-radius: 4px;
}
.digit-ButtonGroup > .digit-Button {
background-color: pink;
}- Chrome (latest)
- Firefox (latest)
- Opera (latest)
- IE 10+
- Safari 7+

