How to use the @commercetools-uikit/utils.filterAriaAttributes function in @commercetools-uikit/utils

To help you get started, we’ve selected a few @commercetools-uikit/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github commercetools / ui-kit / src / components / inputs / toggle-input / toggle-input.js View on Github external
const ToggleInput = props => {
  return (
    <label size="{props.size}">
      <input size="{props.size}" type="checkbox" value="{props.value}" checked="{props.isChecked}" disabled="{props.isDisabled}" name="{props.name}" id="{props.id}">
      <span size="{props.size}" aria-hidden="true">
    </span></label>
  );
};
github commercetools / ui-kit / src / components / inputs / checkbox-input / checkbox-input.js View on Github external
htmlFor={this.state.id}
        hasError={this.props.hasError}
        disabled={this.props.isDisabled}
      &gt;
        
        <div> getCheckboxWrapperStyles(this.props, theme)}&gt;
          {(() =&gt; {
            if (this.props.isIndeterminate)
              return ;
            if (this.props.isChecked) return ;
            return ;
          })()}
        </div>
        {this.props.children &amp;&amp; (
          <div>
            </div>