You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
692 B

import classNames from 'classnames';
import * as React from 'react';
import { useContext } from 'react';
import { useBootstrapPrefix } from './ThemeProvider';
import FormContext from './FormContext';
import { jsx as _jsx } from "react/jsx-runtime";
const FormRange = /*#__PURE__*/React.forwardRef(({
bsPrefix,
className,
id,
...props
}, ref) => {
const {
controlId
} = useContext(FormContext);
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-range');
return /*#__PURE__*/_jsx("input", { ...props,
type: "range",
ref: ref,
className: classNames(className, bsPrefix),
id: id || controlId
});
});
FormRange.displayName = 'FormRange';
export default FormRange;