Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
withInfo()(() => (
<button width="{select("Width"," type="{select("Type"," size="{select("Size"," disabled="{boolean("Disabled"," title="{text("Title",">
))
);</button>
/**
* 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),