prometheusresearch-archive / react-forms

Forms library for React.
1.16k stars 112 forks source link

Customizing form field isn't clear #115

Closed kuznetsov0209 closed 8 years ago

kuznetsov0209 commented 8 years ago

Could you please provide more extended example?

andreypopp commented 8 years ago

Hello, current docs are a little bit out of date about that. I'll update them soon.

Basically components are styleable via react-stylesheet:

import {styleComponent} from 'react-stylesheet'
import {Field, Label} from 'react-forms'

let StyledField = styleComponent(Field, {
  Label(props) {
    return <Label {...props} className="customClassname" />
  }
})
kuznetsov0209 commented 8 years ago

Ok. Thanks. Looking forward to updated docs