react-numeric-input icon indicating copy to clipboard operation
react-numeric-input copied to clipboard

Add renderInput property

Open 2manyvcos opened this issue 7 years ago • 1 comments

This would resolve #76

It adds a prop renderInput={(TagName, props) => InputNode}.

You could for instance use it to integrate it in Semantic UI React:

import { Input as SemanticInput } from 'semantic-ui-react'
...
import NumericInput from 'react-numeric-input'

const myNumberInput = (
  <NumericInput renderInput={(tagName, { ref, style, ...props }) => (
    <SemanticInput {...props} input={{ ref }} />
  )} />
)

2manyvcos avatar Jan 31 '18 09:01 2manyvcos

any chance to have this merged in master? Looks good to me, and it would really help with semantic-ui-react integration

GuLinux avatar Jun 11 '18 13:06 GuLinux