ureact-button

Ureact button component

Usage no npm install needed!

<script type="module">
  import ureactButton from 'https://cdn.skypack.dev/ureact-button';
</script>

README

ureact-button

Ureact button component

Usage

<UreactButton
  type={'default'|'primary'}
  onClick={
    /* Triggered when clicked. If this returns a promise, will
       automatically show busy cursor until Promise finishes */
  }
  label={'name of button' /* can also pass in as child */}
  disabled={true|false}
  isBusy={true|false /* to programatically show busy cursor */}>

  Label can be specified here instead

</UreactButton>