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 FileButton from '@tcpsystems/ui/foundation/FileButton';| Prop | Type | Default |
|---|---|---|
variant? | 'primary' | 'secondary' | 'ghost' | 'danger' | 'secondary' |
size? | 'sm' | 'md' | 'lg' | 'md' |
describedby? | string | none |
invalid? | 'true' | 'false' | boolean | none |
disabled? | native | false |
multiple? | native | false |
accept? | native | none |
name? | native | none |
| Snippet |
|---|
children |
| Hook | Kind |
|---|---|
.tcp-button | Root class |
data-size | Data attribute |
data-variant | Data attribute |