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

feature: Implement Pill component #330

Closed
Tracked by #315
eryc-cc opened this issue Sep 9, 2022 · 2 comments · Fixed by #341
Closed
Tracked by #315

feature: Implement Pill component #330

eryc-cc opened this issue Sep 9, 2022 · 2 comments · Fixed by #341

Comments

@eryc-cc
Copy link
Contributor

eryc-cc commented Sep 9, 2022

Summary

The <Pill> component is like a badge, that can be used anywhere on the app.

Props:

  • icon?: No icon by default.
  • text: Can plug whatever text we need (ideally 1-3 words)
  • color?: Default is slate. Use the same pattern from Figma, where the background is shade 03, text is 11, and icon is 9 or 10, depending on the color.
  • size?: Default is the same as the "High" from Figma. Currently we'll have 2 sizes: base and small. Only thing that changes is the padding.

Notes:

  • Make it so we have 4 colors available by default: slate / grass / amber / red.

Preview:

Screen Shot 2022-09-09 at 8 52 08 PM

@github-actions
Copy link
Contributor

🎉 This issue has been resolved in version 1.4.0-beta.13 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

🎉 This issue has been resolved in version 1.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant