Skip to content

Instantly share code, notes, and snippets.

@Woody88
Created January 15, 2019 16:36
Show Gist options
  • Select an option

  • Save Woody88/a06f00fd1d1bb9d90c86d3c6f6fa1549 to your computer and use it in GitHub Desktop.

Select an option

Save Woody88/a06f00fd1d1bb9d90c86d3c6f6fa1549 to your computer and use it in GitHub Desktop.
var Button = require('@salesforce/design-system-react/lib/components/button');
exports._buttonImpl = function(){
return Button;
}
type ButtonProps
= ( onBlur :: EventHandler
, onClick :: EventHandler
, onFocus :: EventHandler
, onKeyDown :: EventHandler
, onKeyPress :: EventHandler
, onKeyUp :: EventHandler
, onMouseDown :: EventHandler
, onMouseEnter :: EventHandler
, onMouseLeave :: EventHandler
, onMouseUp :: EventHandler
, buttonRef :: EventHandler
, responsive :: Boolean
, inverse :: Boolean
, hint :: Boolean
, disabled :: Boolean
, className :: String
, iconClassName :: String
, iconName :: String
, iconPath :: String
, iconPosition :: String
, iconSize :: String
, iconVariant :: String
, id :: String
, label :: String
, tabIndex :: String
, "type" :: String
, title :: String
, variant :: String
, style :: CSS
)
foreign import _buttonImpl :: forall props partial trash. Union partial trash ButtonProps => ReactComponent { | partial }
button :: forall props partial trash. Union partial trash ButtonProps => { | partial } -> JSX
button = element _buttonImpl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment