base-ui icon indicating copy to clipboard operation
base-ui copied to clipboard

[Slider] Modernize implementation

Open mj12albert opened this issue 5 months ago • 1 comments

  1. Replaced useCompound with Composite

Previously the id attribute of all the input elements were passed to useCompound as metadata to generate the for attribute of the output element.

However the refs provided by Composite can't be used during the render of Output for this, so the ids have to be held in a new state

  1. Converted types to namespaces
  2. Fix https://github.com/mui/base-ui/issues/635
  3. Hooks/context are no longer exported for now - it's no longer possible to (easily) implement a Material Design slider as it would require custom subcomponents

mj12albert avatar Sep 05 '24 06:09 mj12albert