@ark-ui/react
Version:
A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.
20 lines (15 loc) • 848 B
JavaScript
'use client';
;
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 usePasswordInputContext = require('./use-password-input-context.cjs');
const PasswordInputIndicator = react.forwardRef((props, ref) => {
const passwordInput = usePasswordInputContext.usePasswordInputContext();
const mergedProps = react$1.mergeProps(passwordInput.getIndicatorProps(), props);
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.span, { ...mergedProps, ref, children: passwordInput.visible ? props.children : props.fallback });
});
PasswordInputIndicator.displayName = "PasswordInputIndicator";
exports.PasswordInputIndicator = PasswordInputIndicator;