Skip to content
tcpsystemsui

Theme

Colour scheme
Accent
Density
Radius
Esc

FileButton

A button that opens the native file chooser and reports the chosen files.

beta

Examples

Live examples for this component are on the way.

API

Import
import FileButton from '@tcpsystems/ui/foundation/FileButton';
PropTypeDefault
variant?'primary' | 'secondary' | 'ghost' | 'danger''secondary'
size?'sm' | 'md' | 'lg''md'
describedby?stringnone
invalid?'true' | 'false' | booleannone
disabled?nativefalse
multiple?nativefalse
accept?nativenone
name?nativenone
Snippet
children
HookKind
.tcp-buttonRoot class
data-sizeData attribute
data-variantData attribute