UNPKG

@jsxtools/aui

Version:

A baseline UI as Mixins, Custom Elements, React Components, etc.

1 lines 755 B
import{without}from"./_without.js";import{customElements}from"../api/dom.js";import{FormAssociatedFileElement}from"../elements/form-associated-file.js";import{createElement,useCallback}from"react";customElements.define("a-form-associated-file",FormAssociatedFileElement);var FormAssociatedFileComponent=({ref,...props})=>createElement("a-form-associated-file",{...without(props,"excludeAcceptAllOption","maxSize","types","value"),ref:useCallback((current)=>{if(current){if("maxSize"in props)current.maxSize=props.maxSize;if("types"in props)current.types=props.types}if(typeof ref==="function")ref(current);else if(ref&&"current"in ref)ref.current=current},[props.excludeAcceptAllOption,props.maxSize,props.types,ref])});export{FormAssociatedFileComponent}