
package.dist.components.file-upload.file-upload-item-name.cjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of react Show documentation
Show all versions of react Show documentation
A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.
The newest version!
'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 useFileUploadContext = require('./use-file-upload-context.cjs');
const useFileUploadItemPropsContext = require('./use-file-upload-item-props-context.cjs');
const FileUploadItemName = react.forwardRef(
(props, ref) => {
const { children, ...rest } = props;
const fileUpload = useFileUploadContext.useFileUploadContext();
const itemProps = useFileUploadItemPropsContext.useFileUploadItemPropsContext();
const mergedProps = react$1.mergeProps(fileUpload.getItemNameProps(itemProps), rest);
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref, children: children || itemProps.file.name });
}
);
FileUploadItemName.displayName = "FileUploadItemName";
exports.FileUploadItemName = FileUploadItemName;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy