Add className to directly render a div
h0jeZvgoxFepBQ2C opened this issue · 3 comments
h0jeZvgoxFepBQ2C commented
Would be cool if you could add a className parameter, which automatically generates a div with the desired classname...!
bluebill1049 commented
use render
h0jeZvgoxFepBQ2C commented
Sure, but it would be really handy to just add className :)
bluebill1049 commented
we do spread the rest props as well with as
: https://github.com/react-hook-form/error-message/blob/master/src/ErrorMessage.tsx#L29