diff options
Diffstat (limited to 'src/components/Form/Form.tsx')
| -rw-r--r-- | src/components/Form/Form.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/Form/Form.tsx b/src/components/Form/Form.tsx index 74a4efb..44763c4 100644 --- a/src/components/Form/Form.tsx +++ b/src/components/Form/Form.tsx @@ -5,16 +5,18 @@ const Form = ({ children, submitHandler, modifier = '', + id, }: { children: ReactNode; submitHandler: any; modifier?: string; + id?: string; }) => { const withModifier = modifier ? styles[`wrapper--${modifier}`] : ''; const classes = `${styles.wrapper} ${withModifier}`; return ( - <form onSubmit={submitHandler} className={classes}> + <form onSubmit={submitHandler} className={classes} id={id}> {children} </form> ); |
