obap-check

July 21, 2020 ยท View on GitHub

A Material Design checkbox.

Usage

import '@obap/obap-elements/obap-check/obap-check.js';

<!-- Unselected -->
<obap-button label="unselected"></obap-button>

<!-- Selected -->
<obap-button label="selected" selected></obap-button>

<!-- Indeterminate -->
<obap-button label="indeterminate" indeterminate></obap-button>

<!-- Disabled -->
<obap-button label="disabled" disabled></obap-button>

Properties

PropertyAttributeTypeDefaultDescription
disableddisabledBoolean"false"If true, the button will be disabled.
hasFocushas-focusbooleanfalse
indeterminateindeterminatebooleanfalse
labellabelstring
namenamestring
noInkno-inkbooleanfalse
roleroleString"checkbox"The ARIA role of the element.
selectedselectedbooleanfalse
tabIndexnumber0

Events

Event
obap-item-selected