
Coral is a thoroughly developed design system widely adopted by developers and designers for creating beautiful and user-friendly Sea internal products.
Copyright © 2018-2025 Sea Labs
Prop name | Type | Default | Description |
---|---|---|---|
accept | string | string[] | ||
as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
disabled | boolean | ||
files | File[] | ||
initialFiles | File[] | [] | |
invalid | boolean | ||
maxSize | number | 2 * MB | By default is 2048. |
minSize | number | ||
onChange | (files: File[]) => void | ||
onDrop | <T extends File>(acceptedFiles: T[], rejectedFiles: T[], event: DropEvent) => void | When the files selected are rejected (due to maxSize, minSize, accepts, etc), you can get the rejectedFiles from the second parameter. |
Prop name | Type | Default | Description |
---|---|---|---|
imagePreviewProps | UploadFileImagePreviewProps | ||
placeholderProps | UploadFilePlaceholderProps | ||
selectedProps | UploadFilePreviewProps |
Prop name | Type | Default | Description |
---|---|---|---|
as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
hint | ReactNode | ||
hintProps | HTMLAttributes<HTMLDivElement> & { as?: any; ref?: Ref<HTMLDivElement>; } | ||
imgSrc | string | ||
removeProps | IconButtonProps & { ref?: Ref<HTMLDivElement>; } |
Prop name | Type | Default | Description |
---|---|---|---|
as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
detailProps | DivProps | ||
file | File | ||
icon | ReactNode | ||
iconProps | DivProps | ||
nameProps | DivProps | ||
onDelete | (e: SyntheticEvent<HTMLDivElement, Event>) => void | ||
sizeProps | DivProps |
Prop name | Type | Default | Description |
---|---|---|---|
as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
description | ReactNode | ||
descriptionProps | DivProps | ||
text | ReactNode | ||
textProps | DivProps |
Prop name | Type | Default | Description |
---|---|---|---|
as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
itemProps | UploadFileItemProps & { ref?: Ref<HTMLDivElement>; } | ||
removeProps | IconButtonProps & { ref?: Ref<HTMLDivElement>; } |
Prop name | Type | Default | Description |
---|---|---|---|
as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
itemProps | UploadFileItemProps & { ref?: Ref<HTMLDivElement>; } | ||
onDelete | (e: SyntheticEvent<HTMLDivElement, Event>) => void | ||
progress | number | ||
progressProps | ProgressBarProps & { ref?: Ref<HTMLDivElement>; } |
Copyright © 2018-2025 Sea Labs