UNPKG

react-native-a11y-slider

Version:

An accessible range slider that supports assistive devices like screen readers

17 lines (16 loc) 708 B
import { AccessibilityProps } from "react-native"; import { SliderStop, setA11yMarkerPropsFunction, MarkerType, SliderType } from "./types"; /** * Define the accessibility props and actions for the slider marker */ type UseA11yMarkerPropsProps = AccessibilityProps & { position: SliderStop; type: MarkerType; sliderType: SliderType; minValue?: number; maxValue?: number; setValue: (position: number, pushOther?: boolean) => void; setA11yMarkerProps?: setA11yMarkerPropsFunction; }; export default function useA11yMarkerProps({ position, type, sliderType, minValue, maxValue, setValue, setA11yMarkerProps, ...a11yProps }: UseA11yMarkerPropsProps): AccessibilityProps; export {};