FileInput
FileInput is a simple input field.
Code Example
<script setup lang="ts">
const value = ref('')
</script>
<template>
<FileInput />
</template>Components
FileInput is a standalone component.
FileInput
FileInput can be customized with the following props:
| Prop | Type | Description |
|---|---|---|
join | boolean | Use inside Join to group items together. |
color | string | Sets the color to one of the below prop names. |
| Â Â Â neutral | boolean | Sets the color to neutral. |
| Â Â Â primary | boolean | Sets the color to primary. |
| Â Â Â secondary | boolean | Sets the color to secondary. |
| Â Â Â accent | boolean | Sets the color to accent. |
| Â Â Â info | boolean | Sets the color to info. |
| Â Â Â success | boolean | Sets the color to success. |
| Â Â Â warning | boolean | Sets the color to warning. |
| Â Â Â error | boolean | Sets the color to error. |
bordered | boolean | Enables the bordered style on the button |
ghost | boolean | Enables the ghost style on the button |
disabled | boolean | Disables the button both visually and functionally. |
size | string | Sets the size. Can be set to one of the below size prop names. |
   lg | boolean | Sets the size to lg |
   md | boolean | Sets the size to md (the default) |
   sm | boolean | Sets the size to sm |
   xs | boolean | Sets the size to xs |
Color
Code Example
<FileInput primary />Bordered
The bordered prop adds a base-colored bordered around the input.
Code Example
<FileInput bordered />Ghost
The ghost prop removes the background.
Code Example
<FileInput ghost />Disabled
Code Example
<FileInput disabled />Size
Code Example
<FileInput lg />