SubComponents
Control
The control subcomponent is required to render the Control
of the NumberInput component. Because of this, this component extends the native input
[type='file']
component props. Because of this, you can use all of the native props. This is a required children.
Control API
Notice that there is a difference between using hasError, isDisabled
here or in the parent component. It is not recommended to change this props in the Control
subcomponent, because this props can be inherited from the Wrapper
. If you use it in the Control
subcomponent, you will get the state only in the field.
files
SDSFile[]
❌
defaultFileNames
SDSFile[]
❌
regionDescription
string
❌
actionText
string
❌
isDisabled
boolean
❌
hasError
boolean
❌
warningMessages
{
fileSize?: ReactNode; invalidFile?: ReactNode;
}
❌
fileSizeConfig
{
fileSizeLimit?: number; fileSizeUnit?: 'Byte' | 'KB' | 'MB' | 'GB';
}
❌
acceptedFiles
'All' | 'Images' | 'Audio' | 'Video' | string;
❌
onFileRemove
(fileId: string) => void;
❌
onChange
(e: FileUploadRegionOnChangeProps) => void;
❌
HelpText
The HelpText subcomponent extends the SDS label component. See for reference: HelpText.
Label
The Label subcomponent extends the SDS label component. See for reference: Label
Last updated