mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 23:59:12 +08:00
15 lines
468 B
TypeScript
15 lines
468 B
TypeScript
|
import { createContext } from 'react';
|
||
|
import type { SliderProps as RcSliderProps } from 'rc-slider';
|
||
|
|
||
|
import type { DirectionType } from '../config-provider';
|
||
|
|
||
|
export interface SliderInternalContextProps {
|
||
|
handleRender?: RcSliderProps['handleRender'];
|
||
|
direction?: DirectionType;
|
||
|
}
|
||
|
|
||
|
/** @private Internal context. Do not use in your production. */
|
||
|
const SliderInternalContext = createContext<SliderInternalContextProps>({});
|
||
|
|
||
|
export default SliderInternalContext;
|