File Input

File Input is a an input field for uploading files.

Class name
Type
form-controlComponent Container element
labelComponent For helper text
file-inputComponent For <input> element
file-input-bordered
Modifier
Adds border to input
file-input-ghost
Modifier
Adds ghost style to input
file-input-primary
Modifier
Adds `primary` color to input
file-input-secondary
Modifier
Adds `secondary` color to input
file-input-accent
Modifier
Adds `accent` color to input
file-input-info
Modifier
Adds `info` color to input
file-input-success
Modifier
Adds `success` color to input
file-input-warning
Modifier
Adds `warning` color to input
file-input-error
Modifier
Adds `error` color to input
file-input-lg
Responsive
Large size for input
file-input-md
Responsive
Medium (default) size for input
file-input-sm
Responsive
Small size for input
file-input-xs
Responsive
Extra small size for input
# File input
# File input with border
# Ghost (no background)
# With form-control and labels
# Primary color
# Secondary color
# Accent color
# Info color
# Success color
# Warning color
# Error color
# Sizes
# Disabled
Do you have a question? ask the community
Do you see a bug? open an issue on GitHub
Do you like daisyUI? tweet about it!
Support daisyUI's development: Open Collective
daisyUI store

Official daisyUI
Figma Library

Available on daisyUI store

More details