UNPKG

@smart-react-components/ui

Version:
24 lines (23 loc) 951 B
import { IntrinsicStyledCoreProps } from '@smart-react-components/core/element-props/intrinsic-styled-core-props'; import { ContentElement, PaletteProp, Partial, ResponsiveProp, SetState, ShapeProp, SizeProp } from '@smart-react-components/core/types'; import React from 'react'; export interface Props extends Partial<ResponsiveProp<'size', SizeProp>>, IntrinsicStyledCoreProps { accept?: string; hasBorder?: boolean; isBlock?: boolean; isDisabled?: boolean; isRequired?: boolean; isOutline?: boolean; isSoft?: boolean; label?: ContentElement; leftAddon?: ContentElement; palette?: PaletteProp; placeholder?: string; rightAddon?: ContentElement; setValue: SetState<File | File[]>; shape?: ShapeProp; template?: JSX.Element; value: File | File[] | null; } declare const InputFile: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>; export default InputFile;