Skip to content

Commit

Permalink
display the component's name on storybook docs
Browse files Browse the repository at this point in the history
  • Loading branch information
brenocastelo committed Dec 14, 2022
1 parent 67807fd commit 73a8e67
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react/src/components/Avatar/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ export const AvatarFallback = styled(Avatar.Fallback, {
width: '$6',
},
});

AvatarContainer.displayName = 'Avatar';
2 changes: 2 additions & 0 deletions packages/react/src/components/Box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ export const Box = styled('div', {
export interface BoxProps extends ComponentProps<typeof Box> {
as?: ElementType;
}

Box.displayName = 'Box';
2 changes: 2 additions & 0 deletions packages/react/src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,5 @@ export const Button = styled('button', {
export interface ButtonProps extends ComponentProps<typeof Button> {
as?: ElementType;
}

Button.displayName = 'Button';
2 changes: 2 additions & 0 deletions packages/react/src/components/Checkbox/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ export const CheckboxIndicator = styled(Checkbox.CheckboxIndicator, {
animation: `${slidOut} 200ms ease-out`,
},
});

CheckboxContainer.displayName = 'Checkbox';
2 changes: 2 additions & 0 deletions packages/react/src/components/Heading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ export const Heading = styled('h2', {
export interface HeadingProps extends ComponentProps<typeof Heading> {
as?: ElementType;
}

Heading.displayName = 'Heading';
2 changes: 2 additions & 0 deletions packages/react/src/components/Multistep/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ export const Step = styled('div', {
},
},
});

MultistepContainer.displayName = 'Multistep';
2 changes: 2 additions & 0 deletions packages/react/src/components/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ export const Text = styled('p', {
export interface TextProps extends ComponentProps<typeof Text> {
as?: ElementType;
}

Text.displayName = 'Text';
2 changes: 2 additions & 0 deletions packages/react/src/components/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ export const TextArea = styled('textarea', {
});

export interface TextAreaProps extends ComponentProps<typeof TextArea> {}

TextArea.displayName = 'TextArea';
2 changes: 2 additions & 0 deletions packages/react/src/components/TextInput/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ export const Prefix = styled('span', {
fontWeight: '$regular',
fontFamily: '$default',
});

Input.displayName = 'Input';

0 comments on commit 73a8e67

Please sign in to comment.