How to use react-polymorph - 2 common examples

To help you get started, we’ve selected a few react-polymorph 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 Emurgo / yoroi-frontend / app / themes / skins / CheckboxOwnSkin.js View on Github external
role="presentation"
    aria-hidden
    className={classnames([
      props.className,
      props.theme[props.themeId].root,
      props.disabled ? props.theme[props.themeId].disabled : null,
      props.checked ? props.theme[props.themeId].checked : null
    ])}
    onClick={event => {
      if (!props.disabled && props.onChange) {
        props.onChange(!props.checked, event);
      }
    }}
  >
    <input type="checkbox">
    <div>
    <div>
      {props.label &amp;&amp; (
        // eslint-disable-next-line
        <label>
          {props.label}</label></div></div>
github Emurgo / yoroi-frontend / app / themes / skins / InputOwnSkin.js View on Github external
render={({ inputType }) =&gt; (
          <input required="required" readonly="{this.props.readOnly}" type="{inputType}">
        )}
      /&gt;

react-polymorph

React components with highly customizable logic, markup and styles.

Apache-2.0
Latest version published 2 years ago

Package Health Score

52 / 100
Full package analysis

Popular react-polymorph functions