Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas metus nulla, commodo a sodales sed, dignissim pretium nunc. Nam et lacus neque. Ut enim massa, sodales tempor convallis et, iaculis ac massa.
Checkbox: The Material Design Lite (MDL) checkbox component is an enhanced version of the standard HTML <input type="checkbox">
element. A checkbox consists of a small square and, typically, text that clearly communicates a binary condition that will be set or unset when the user clicks or touches it. Checkboxes typically, but not necessarily, appear in groups, and can be selected and deselected individually. The MDL checkbox component allows you to add display and click effects.
Radio: The Material Design Lite (MDL) radio component is an enhanced version of the standard HTML <input type="radio">
, or "radio button" element. A radio button consists of a small circle and, typically, text that clearly communicates a condition that will be set when the user clicks or touches it.
Icon Toggle: The Material Design Lite (MDL) icon-toggle component is an enhanced version of the standard HTML <input type="checkbox">
element. An icon-toggle consists of a user defined icon that indicates, by visual highlighting, a binary condition that will be set or unset when the user clicks or touches it. Like checkboxes, icon-toggles may appear individually or in groups, and can be selected and deselected individually.
Switch: The Material Design Lite (MDL) switch component is an enhanced version of the standard HTML <input type="checkbox">
element. A switch consists of a short horizontal "track" with a prominent circular state indicator and, typically, text that clearly communicates a binary condition that will be set or unset when the user clicks or touches it.
MDL class | Effect | Remarks |
---|---|---|
mdl-checkbox |
Defines label as an MDL component | Required on label element |
mdl-js-checkbox |
Assigns basic MDL behavior to label | Required on label element |
mdl-checkbox__input |
Applies basic MDL behavior to checkbox | Required on input element (checkbox) |
mdl-checkbox__label |
Applies basic MDL behavior to caption | Required on span element (caption) |
mdl-js-ripple-effect |
Applies ripple click effect | Optional; goes on label element, not input element (checkbox) |
MDL class | Effect | Remarks |
---|---|---|
mdl-radio |
Defines label as an MDL component | Required on label element |
mdl-js-radio |
Assigns basic MDL behavior to label | Required on label element |
mdl-radio__button |
Applies basic MDL behavior to radio | Required on input element (radio button) |
mdl-radio__label |
Applies basic MDL behavior to caption | Required on span element (caption) |
mdl-js-ripple-effect |
Applies ripple click effect | Optional; goes on label element, not input element (radio button) |
MDL class | Effect | Remarks |
---|---|---|
mdl-icon-toggle |
Defines label as an MDL component | Required on label element |
mdl-js-icon-toggle |
Assigns basic MDL behavior to label | Required on label element |
mdl-icon-toggle__input |
Applies basic MDL behavior to icon-toggle | Required on input element (icon-toggle) |
mdl-icon-toggle__label |
Applies basic MDL behavior to caption | Required on i element (icon) |
mdl-js-ripple-effect |
Applies ripple click effect | Optional; goes on label element, not input element (icon-toggle) |
MDL class | Effect | Remarks |
---|---|---|
mdl-switch |
Defines label as an MDL component | Required on label element |
mdl-js-switch |
Assigns basic MDL behavior to label | Required on label element |
mdl-switch__input |
Applies basic MDL behavior to switch | Required on input element (switch) |
mdl-switch__label |
Applies basic MDL behavior to caption | Required on span element (caption) |
mdl-js-ripple-effect |
Applies ripple click effect | Optional; goes on label element, not input element (switch) |