Skip to content

Commit

Permalink
Rename Label component
Browse files Browse the repository at this point in the history
  • Loading branch information
colebemis committed Feb 2, 2021
1 parent 78ad965 commit 56e2828
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/FormGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ FormGroup.propTypes = {
...sx.propTypes
}

const Label = styled.label<SystemTypographyProps & SystemCommonProps & SxProp>`
const FormGroupLabel = styled.label<SystemTypographyProps & SystemCommonProps & SxProp>`
display: block;
margin: 0 0 ${get('space.2')};
font-size: ${get('fontSizes.1')};
Expand All @@ -30,18 +30,18 @@ const Label = styled.label<SystemTypographyProps & SystemCommonProps & SxProp>`
${sx};
`

Label.displayName = 'FormGroup.Label'
FormGroupLabel.displayName = 'FormGroup.Label'

Label.defaultProps = {
FormGroupLabel.defaultProps = {
theme
}

Label.propTypes = {
FormGroupLabel.propTypes = {
...TYPOGRAPHY.propTypes,
...COMMON.propTypes,
...sx.propTypes
}

export type FormGroupProps = ComponentProps<typeof FormGroup>
export type FormGroupLabelProps = ComponentProps<typeof Label>
export default Object.assign(FormGroup, {Label})
export type FormGroupLabelProps = ComponentProps<typeof FormGroupLabel>
export default Object.assign(FormGroup, {Label: FormGroupLabel})

0 comments on commit 56e2828

Please # to comment.