mirror of
https://github.com/wassname/talk.git
synced 2026-08-16 11:29:31 +08:00
Pass rest of props
This commit is contained in:
@@ -15,13 +15,14 @@ interface InnerProps {
|
||||
}
|
||||
|
||||
const FormField: StatelessComponent<InnerProps> = props => {
|
||||
const { classes, className, children } = props;
|
||||
const { classes, className, children, ...rest } = props;
|
||||
|
||||
return (
|
||||
<Flex
|
||||
direction="column"
|
||||
className={cn(classes.root, className)}
|
||||
itemGutter="half"
|
||||
{...rest}
|
||||
>
|
||||
{children}
|
||||
</Flex>
|
||||
|
||||
Reference in New Issue
Block a user