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

[Meter] Add Meter component #1435

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

mj12albert
Copy link
Member

@mj12albert mj12albert commented Feb 10, 2025

Docs: https://deploy-preview-1435--base-ui.netlify.app/react/components/meter

Demo: https://deploy-preview-1435--base-ui.netlify.app/experiments/meter

Summary

  • Does not use meter element due to numerous cross-browser inconsistencies 12
  • Same anatomy and API as Progress since they are closely related, e.g. Value subcomponent, format prop

Closes #662

Footnotes

  1. https://www.htmhell.dev/adventcalendar/2022/5/

  2. https://scottaohara.github.io/a11y_styled_form_controls/src/meter/

Copy link

netlify bot commented Feb 10, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 5f3f9a4
🔍 Latest deploy log https://app.netlify.com/sites/base-ui/deploys/67a9d9841d8f100008b38140
😎 Deploy Preview https://deploy-preview-1435--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mj12albert mj12albert marked this pull request as ready for review February 10, 2025 10:58
@@ -0,0 +1,15 @@
.Track {
Copy link
Member Author

@mj12albert mj12albert Feb 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it ok for this to be identical to the Progress demo, minus the faked loading state?
(If so I'll add the TW one too)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: meter new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Meter] Implement Meter
1 participant