package.dist.components.progress.progress-view.js Maven / Gradle / Ivy
'use client';
import { jsx } from 'react/jsx-runtime';
import { mergeProps } from '@zag-js/react';
import { forwardRef } from 'react';
import { createSplitProps } from '../../utils/create-split-props.js';
import { ark } from '../factory.js';
import { useProgressContext } from './use-progress-context.js';
const ProgressView = forwardRef((props, ref) => {
const [viewProps, localProps] = createSplitProps()(props, ["state"]);
const progress = useProgressContext();
const mergedProps = mergeProps(progress.getViewProps(viewProps), localProps);
return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });
});
ProgressView.displayName = "ProgressView";
export { ProgressView };
© 2015 - 2025 Weber Informatics LLC | Privacy Policy