Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(SP: 3) Create UserAvatar component aligned with design system #2857

Closed
PavloButynets opened this issue Nov 23, 2024 · 0 comments · Fixed by #2898
Closed

(SP: 3) Create UserAvatar component aligned with design system #2857

PavloButynets opened this issue Nov 23, 2024 · 0 comments · Fixed by #2898
Assignees
Labels

Comments

@PavloButynets
Copy link
Contributor

PavloButynets commented Nov 23, 2024

Description:

Implement a reusable UserAvatar component that meets the design system standards. This component will be used throughout the application to maintain consistency in user avatar styles, behavior, and accessibility.

[Figma]

Requirements:

Styles:

Follow design system variables for colors, icons, padding, and other styles.
-Support different variants (check, monogram, avatar, photo).
-Provides a label that signals online status

Props:

-variant: Defines type (check, monogram, avatar, photo).
-size: Supports different sizes (sm, md, lg).
-src: Provide URL for photo (for the type photo)
-monogram: Provide text for the monogram
-isOnline: The label is displayed when true(user is online).
-onClick: A callback function that processes the event of clicking on the icon.

Don't forget to cover component with tests and add to the storybook

@PavloButynets PavloButynets self-assigned this Nov 23, 2024
@github-project-automation github-project-automation bot moved this to Project Backlog in SpaceToStudy Nov 23, 2024
@PavloButynets PavloButynets linked a pull request Nov 27, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from In progress to Done in SpaceToStudy Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant