Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ui-component-library / src / forms / form / _elements.tsx
Size: Mime:
import React from 'react'

// @todo - name innerRef > setRef
export const FormElement = props => {
  const { setRef, className, formId, handleSubmit, ...remainingProps } = props
  return (
    <form
      ref={setRef}
      {...remainingProps}
      id={formId}
      onSubmit={handleSubmit}
      className={className}
    />
  )
}

/**
 * @todo - <Button> attom !!!!!!!!
 */
export const SubmitButton = props => <button {...props} />
export const CancelButton = props => <button {...props} />