Leave Yamada UI a star

Star
Yamada UIYamada UIv1.6.4

FileInput

FileInput is a component used for users to select files.

Source@yamada-ui/file-input

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

<FileInput placeholder="Select a file" aria-label="File upload" />
Copied!
<VStack gap="sm">
<Heading as="h3" id="label">
File upload
</Heading>
<FileInput placeholder="Select a file" aria-labelledby="label" />
</VStack>
Copied!

Keyboard Interaction

KeyDescriptionState
TabFocuses the element.-
Space, EnterWhen element has focus, activates it.-

ARIA Roles and Attributes

ComponentRoles and AttributesUsage
FileInputrole="button"Indicates that it is a button.
aria-disabledSet to "true" if isDisabled is set.
aria-invalidSet to "true" if isInvalid is set.
input Internalaria-readonlySet to "true" if isReadOnly is set.
aria-disabledSet to "true" if isDisabled is set.
aria-invalidSet to "true" if isInvalid is set.

Edit this page on GitHub

PreviousColorPickerNextFileButton