How to use the hig-vanilla.Button.AvailableSizes function in hig-vanilla

To help you get started, we’ve selected a few hig-vanilla 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 Autodesk / hig / packages / react / src / adapters / ButtonAdapter / __stories__ / Button.stories.js View on Github external
withInfo()(() => (
    <button width="{select(&quot;Width&quot;," type="{select(&quot;Type&quot;," size="{select(&quot;Size&quot;," disabled="{boolean(&quot;Disabled&quot;," title="{text(&quot;Title&quot;,">
  ))
);</button>
github Autodesk / hig / packages / react / src / adapters / ButtonAdapter / ButtonAdapter.js View on Github external
/**
   * Triggers when you click the button
   */
  onClick: PropTypes.func,
  /**
   * Triggers when focus is moved to button
   */
  onFocus: PropTypes.func,
  /**
   * Triggers when you hover over the button
   */
  onHover: PropTypes.func,
  /**
   * Specifies size of button
   */
  size: PropTypes.oneOf(VanillaButton.AvailableSizes),
  /**
   * Specifies where to display the linked URL
   */
  target: PropTypes.oneOf(["_self", "_blank", "_parent", "_top"]),
  /**
   * Sets the title of a button
   */
  title: PropTypes.string.isRequired,
  /**
   * Specifies type of button
   */
  type: PropTypes.oneOf(VanillaButton.AvailableTypes),
  /**
   * Specifies width of button (grow or shrink)
   */
  width: PropTypes.oneOf(VanillaButton.AvailableWidths),