@wordpress/components
Version:
UI components for WordPress.
34 lines (30 loc) • 778 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import { createElement } from "@wordpress/element";
/**
* WordPress dependencies
*/
import { forwardRef } from '@wordpress/element';
/**
* Internal dependencies
*/
import { InputRange as BaseInputRange } from './styles/range-control-styles';
function InputRange(props, ref) {
const {
describedBy,
label,
value,
...otherProps
} = props;
return createElement(BaseInputRange, _extends({}, otherProps, {
"aria-describedby": describedBy,
"aria-label": label,
"aria-hidden": false,
ref: ref,
tabIndex: 0,
type: "range",
value: value
}));
}
const ForwardedComponent = forwardRef(InputRange);
export default ForwardedComponent;
//# sourceMappingURL=input-range.js.map