JSPM

@hawk-ui/button

1.5.4
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 331
    • Score
      100M100P100Q79558F
    • License MIT

    hawk-ui: Basic Button Component

    Package Exports

    • @hawk-ui/button

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hawk-ui/button) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Basic Button Usage:

    <div className="styleguidist__btns-wrap">
      <p>Simple Button</p>
      <br /><br />
      <div style={{ display: 'flex', justifyContent: 'space-around' }}>
        <Button
          type="button"
          variant="text"
          onClick={() => { window.alert('Button Was Clicked'); }}
        >
          <span>Text Button</span>
        </Button>
        <Button
          type="button"
          variant="outlined"
          onClick={() => { window.alert('Button Was Clicked'); }}
        >
          <span>Outlined Button</span>
        </Button>
        <Button
          type="button"
          variant="contained"
          onClick={() => { window.alert('Button Was Clicked'); }}
        >
          <span>Contained Button</span>
        </Button>
      </div>
      <br /><br />
      <p>Disabled Button</p>
      <br /><br />
      <div style={{ display: 'flex', justifyContent: 'space-around' }}>
        <Button
          type="button"
          variant="text"
          isDisabled
          onClick={() => { window.alert('Button Was Clicked'); }}
        >
          <span>Text Button</span>
        </Button>
        <Button
          type="button"
          variant="outlined"
          isDisabled
          onClick={() => { window.alert('Button Was Clicked'); }}
        >
          <span>Outlined Button</span>
        </Button>
        <Button
          type="button"
          variant="contained"
          isDisabled
          onClick={() => { window.alert('Button Was Clicked'); }}
        >
          <span>Contained Button</span>
        </Button>
      </div>
      <br /><br />
      <p>Icon Button</p>
      <br /><br />
      <div style={{ display: 'flex', justifyContent: 'space-around' }}>
        <Button
          type="button"
          variant="text"
          icon="fa fa-star"
          onClick={() => { window.alert('Button Was Clicked'); }}
        >
          <span>Text Button</span>
        </Button>
        <Button
          type="button"
          variant="outlined"
          icon="fa fa-star"
          onClick={() => { window.alert('Button Was Clicked'); }}
        >
          <span>Outlined Button</span>
        </Button>
        <Button
          type="button"
          variant="contained"
          icon="fa fa-star"
          onClick={() => { window.alert('Button Was Clicked'); }}
        >
          <span>Contained Button</span>
        </Button>
      </div>
    </div>