Skip to content

Commit

Permalink
feat(wedges): export Slider.Root
Browse files Browse the repository at this point in the history
  • Loading branch information
brankoconjic committed Jan 30, 2024
1 parent b6dea71 commit f3251f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/wedges/src/components/Slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import { Tooltip } from "../Tooltip";

/* -------------------------------- SlideRoot ------------------------------- */
export type SliderWedgesElement = React.ElementRef<typeof SliderPrimitive.Root>;
export type SliderWedgesProps = React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root> & {
export type SliderWedgesProps = Omit<
React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>,
"asChild"
> & {
/**
* The slot to be rendered after the slider.
*/
Expand Down Expand Up @@ -280,6 +283,7 @@ const SliderThumb = React.forwardRef<SliderThumbElement, SliderThumbProps>((prop
});

const Slider = Object.assign(SliderWedges, {
Root: SliderRoot,
Track: SliderTrack,
Range: SliderRange,
Thumb: SliderThumb,
Expand Down

0 comments on commit f3251f1

Please sign in to comment.