UNPKG

@ark-ui/react

Version:

A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.

22 lines (17 loc) 853 B
'use client'; 'use strict'; Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const jsxRuntime = require('react/jsx-runtime'); const react$1 = require('@zag-js/react'); const react = require('react'); const factory = require('../factory.cjs'); const useStepsContext = require('./use-steps-context.cjs'); const useStepsItemPropsContext = require('./use-steps-item-props-context.cjs'); const StepsIndicator = react.forwardRef((props, ref) => { const steps = useStepsContext.useStepsContext(); const itemProps = useStepsItemPropsContext.useStepsItemPropsContext(); const mergedProps = react$1.mergeProps(steps.getIndicatorProps(itemProps), props); return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }); }); StepsIndicator.displayName = "StepsIndicator"; exports.StepsIndicator = StepsIndicator;