How to use the hig-vanilla.Button.AvailableTypes 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 / ButtonAdapter.js View on Github external
/**
   * 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),
  /**
   * An icon name or svg string
   */
  icon: PropTypes.string
};

ButtonAdapter.defaultProps = {
  disabled: false
};
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>