mostly finished rewrite

This commit is contained in:
Violet
2024-12-18 12:31:06 -07:00
parent bab7a0ca27
commit d28c65e66b
2906 changed files with 227775 additions and 105 deletions
+28
View File
@@ -0,0 +1,28 @@
"use client";
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;