Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

Dropzone

Dropzone is a component used for uploading files via drag and drop.

Source@yamada-ui/dropzone

If you are not using FormControl, set aria-label or aria-labelledby to Dropzone.

<Dropzone aria-label="Upload file">
<Text>Drag file here or click to select file</Text>
</Dropzone>
Copied!
<VStack gap="sm">
<Text as="h3" id="label">
Upload file
</Text>
<Dropzone aria-labelledby="label">
<Text>Drag file here or click to select file</Text>
</Dropzone>
</VStack>
Copied!

ARIA Roles and Attributes

ComponentRole and AttributesUsage
Dropzonerole="presentation"Indicates that this is a presentation element.
input Internaltype="hidden"Exclude the element from the accessibility tree.
aria-readonlySet to "true" if isReadOnly is set.
aria-disabledSet to "true" if isDisabled is set.
aria-invalidSet to "true" if isInvalid is set.
aria-requiredSet to "true" if isRequired is set.

Edit this page on GitHub

PreviousFileButtonNextSlider