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 authored Jan 29, 2020
2 parents f955b12 + e7a772d commit 29ab066
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/src/form/field/field.tsx
Original file line number Diff line number Diff line change
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 29ab066

Please sign in to comment.