Skip to content

[Feature Request] VProgressLinear - slots for label and value #22256

@J-Sek

Description

@J-Sek

Problem to solve

Dedicated slots for label and value could help developers avoid crafting those on the fly. When label slot is provided, it could supply aria-labelledby to improve accessibility.

Proposed solution

Expose new slots.

Potential challenge:

  • some prop or an easy way to put those slots either above or below the bar
  • needs a <div> wrapper, so will land in v4.0.0

Nice to have: new label prop that could land as aria-label if (yet another) hide-label prop is present.

Design idea from MD3 spec:

Image

Similar to react-aria

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions