Skip to content

Fichier

Cette page couvre :

  • FileInput

Props

  • accept?: string
  • multiple?: boolean

Variables CSS exposées

  • --DFV-file-input-width
  • --DFV-file-input-background
  • --DFV-file-input-foreground
  • --DFV-file-input-border-color
  • --DFV-file-input-hover-border-color
  • --DFV-file-input-focus-border-color
  • --DFV-file-input-focus
  • --DFV-file-input-button-background
  • --DFV-file-input-button-border-color
  • --DFV-file-input-button-hover-background
  • --DFV-file-input-button-foreground

Exemple

vue
vue
<script setup lang="ts">
import { FileInput } from "@duplojs/form/vueDesignSystem";
import { ref } from "vue";

const files = ref<File[] | null>(null);
</script>

<template>
	<FileInput
		v-model="files"
		accept=".pdf,.png"
		multiple
	/>
</template>

Released under the MIT License.