Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

FileInput

FileInputは、ユーザーがファイルを選択するために使用されるコンポーネントです。

ソース@yamada-ui/file-input

Props

FileInputProps

colorScheme

説明

The visual color appearance of the component.

タイプ

"whiteAlpha" | "blackAlpha" | "gray" | "neutral" | "red" | "danger" | "rose" | "pink" | "flashy" | "orange" | "warning" | "amber" | "yellow" | "lime" | "green" | "success" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "primary" | "info" | "link" | "indigo" | "violet" | "secondary" | "purple" | "fuchsia"

component

説明

The component that displays uploaded files.

タイプ

FC<{ value: File; index: number }>

errorBorderColor

説明

The border color when the input is invalid.

タイプ

"border" | "link" | BorderColor | "current" | "focus" | "whiteAlpha.50" | "whiteAlpha.100" | "whiteAlpha.200" | "whiteAlpha.300" | "whiteAlpha.400" | "whiteAlpha.500" | ... 320 more ... | [...]

focusBorderColor

説明

The border color when the input is focused.

タイプ

"border" | "link" | BorderColor | "current" | "focus" | "whiteAlpha.50" | "whiteAlpha.100" | "whiteAlpha.200" | "whiteAlpha.300" | "whiteAlpha.400" | "whiteAlpha.500" | ... 320 more ... | [...]

format

説明

A callback that formats the name of the uploaded file.

タイプ

(value: File, index: number) => string

isDisabled

説明

If true, the form control will be disabled.

タイプ

boolean

デフォルト

false

isInvalid

説明

If true, the form control will be invalid.

タイプ

boolean

デフォルト

false

isReadOnly

説明

If true, the form control will be readonly.

タイプ

boolean

デフォルト

false

isRequired

説明

If true, the form control will be required.

タイプ

boolean

デフォルト

false

onChange

説明

Function to be called when a file change event occurs.

タイプ

(files: File[] | undefined) => void

resetRef

説明

Ref to a reset function.

タイプ

type ONLY_FOR_FORMAT = | ((instance: (() => void) | null) => void) | MutableRefObject<(() => void) | null>

separator

説明

The string to separate uploaded files.

タイプ

string

デフォルト

','

size

説明

The size of the FileInput.

タイプ

"xs" | "sm" | "md" | "lg"

デフォルト

md

value

説明

The value of the file input.

タイプ

File[]

variant

説明

The variant of the FileInput.

タイプ

"outline" | "filled" | "flushed" | "unstyled"

デフォルト

outline

GitHubでこのページを編集する

ColorPickerFileButton