UNPKG

@radix-ui/themes

Version:

[![Radix Themes Logo](https://radix-ui.com/social/themes.png)](https://radix-ui.com/themes)

12 lines (11 loc) 664 B
import * as React from 'react'; import * as SliderPrimitive from '@radix-ui/react-slider'; import { sliderPropDefs } from './slider.props.js'; import type { ComponentPropsWithout } from '../helpers/index.js'; import type { GetPropDefTypes, MarginProps } from '../props/index.js'; type SliderOwnProps = GetPropDefTypes<typeof sliderPropDefs>; interface SliderProps extends ComponentPropsWithout<typeof SliderPrimitive.Root, 'asChild' | 'color' | 'children' | 'defaultChecked'>, MarginProps, SliderOwnProps { } declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>; export { Slider }; export type { SliderProps };