Skip to content

Commit

Permalink
Merge pull request #9665 from storybookjs/fix/styled-form-fields
Browse files Browse the repository at this point in the history
UI: Add support for className prop on Form.Field
  • Loading branch information
shilman committed Feb 2, 2020
1 parent ac4b688 commit 2db6886
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/src/form/field/field.tsx
Expand Up @@ -26,8 +26,8 @@ export interface FieldProps {
label?: ReactNode;
}

export const Field: FunctionComponent<FieldProps> = ({ label, children }) => (
<Wrapper>
export const Field: FunctionComponent<FieldProps> = ({ label, children, ...props }) => (
<Wrapper {...props}>
{label ? (
<Label>
<span>{label}</span>
Expand Down

0 comments on commit 2db6886

Please sign in to comment.