// AlignUI FileUpload v0.0.0 import * as React from 'react'; import { cn } from '@/utils/cn'; import { PolymorphicComponentProps } from '@/utils/polymorphic'; import { Slot } from '@radix-ui/react-slot'; const FileUpload = React.forwardRef< HTMLLabelElement, React.LabelHTMLAttributes & { asChild?: boolean; } >(({ className, asChild, ...rest }, forwardedRef) => { const Component = asChild ? Slot : 'label'; return ( ); }); FileUpload.displayName = 'FileUpload'; const FileUploadButton = React.forwardRef< HTMLDivElement, React.HTMLAttributes & { asChild?: boolean; } >(({ className, asChild, ...rest }, forwardedRef) => { const Component = asChild ? Slot : 'div'; return ( ); }); FileUploadButton.displayName = 'FileUploadButton'; function FileUploadIcon({ className, as, ...rest }: PolymorphicComponentProps) { const Component = as || 'div'; return ( ); } export { FileUpload as Root, FileUploadButton as Button, FileUploadIcon as Icon, };