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