@base-ui-components/react
Version:
Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.
23 lines (21 loc) • 689 B
JavaScript
'use client';
import * as React from 'react';
import { useRenderElement } from "../../utils/useRenderElement.js";
/**
* Contains the meter indicator and represents the entire range of the meter.
* Renders a `<div>` element.
*
* Documentation: [Base UI Meter](https://base-ui.com/react/components/meter)
*/
export const MeterTrack = /*#__PURE__*/React.forwardRef(function MeterTrack(componentProps, forwardedRef) {
const {
render,
className,
...elementProps
} = componentProps;
return useRenderElement('div', componentProps, {
ref: forwardedRef,
props: elementProps
});
});
if (process.env.NODE_ENV !== "production") MeterTrack.displayName = "MeterTrack";