Inputs
FileUpload
Bit.BlazorUI
BitFileUpload sends the files a user picks, drops or pastes to a server endpoint over HTTP - whole or in resumable chunks - with per-file progress, pause, cancel, retry and server-side removal, validation on arrival, and a fully themable, templatable and screen-reader friendly UI. For file selection without uploading, use BitFileInput.
Customization
The button variants, defaults for every uploader of a subtree through BitParams, colors, external icons, sizes, Style & Class, and right-to-left layouts.
Variant
Variant sets how much of the Color the browse button carries:
Fill (default), Outline or Text. Disabled, every variant takes the neutral disabled look.
Cascading parameters
BitParams hands a BitFileUploadParams to every file upload under it as defaults: a parameter
an uploader sets itself wins, everything it leaves unset comes from the cascade.
Up to 5 MB per file.
Up to 5 MB per file.
Up to 5 MB per file.
Color
Color drives the browse button, the drop indicator, the progress bars, the hovered actions and the
focus rings together.
Background, foreground and border colors:
A drop area in a role color:
External Icons
LabelIcon, UploadIcon, RetryIcon, PauseIcon, CancelIcon and
RemoveIcon take a BitIconInfo or a raw class string from
any loaded icon library (BitIconInfo.Fa(), .Bi(), .Css()).
FontAwesome:
Bootstrap:
Size
Size scales the browse button, the items, the action buttons, the icons and the thumbnails together;
Medium is the default.
Style & Class
Style and Class land on the root; Styles and Classes reach every part, and
their Dragging / DraggingRejected entries apply only during a drag.
The --bit-FileUpload-* variables (listed in the API section) inherit, so they work from an
instance's Style, from any ancestor, or from :root. They restyle the default, not a
choice: an explicit Color or Size wins over the variables for what it sets.
RTL
Dir="BitDir.Rtl" mirrors the whole layout; the localizable texts complete it.
Feedback
Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.