Filväljare

Komponent
Status
Produktionsklar
Innehåll

Filväljare används för att välja filer.

API

Props

id: string Optional

The id for the input id attribute. The id for the label for attribute. If the prop is not set a random value will be generated.

Default: () => ElementIdService.generateElementId()

disabled: boolean Optional

Disables the file selector.

size: "small" | "medium" | "large" Optional

Button size, can be one of:

  • small
  • medium
  • large

Default: "medium"

Events

change

Emitted when file changes.

Arguments:

  • <anonymous>: FileList

Slots

default

Esc för att stänga Pil upp/ner för att navigera Enter för att välja