Skip to content

Commit

Permalink
fix(Form): add ability to pass classname to form
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed Jun 13, 2019
1 parent bef956f commit 0948342
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Form/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ type FormPlateProps = {
children?: React$Node,
/** component to use instead of form tag */
component?: React$Node,
/** custom class name */
className?: string,
};

const name = 'form';
Expand Down Expand Up @@ -49,12 +51,14 @@ const Form = ({
children,
onSubmit,
component,
className,
...rest
}: FormPlateProps) => {
return (
<FormTag
tagName={ component }
onSubmit={ onSubmit }
className={ className }
>
<FlexLayout { ...rest } >
{ children }
Expand Down

0 comments on commit 0948342

Please sign in to comment.