FileTrigger
The props declared for FileTrigger, generated from the types @proyecto-viviana/ui ships.
Import
import { FileTrigger } from "@proyecto-viviana/ui";Props
| Prop | Type | Default | Description |
|---|---|---|---|
class | string | — | Additional CSS class for the trigger wrapper. |
acceptedFileTypes | readonly string[] | — | Mime types accepted by the file picker. solidaria-components |
allowsMultiple | false | true | — | Whether multiple files can be selected. solidaria-components |
defaultCamera | 'user' | 'environment' | — | Default camera capture mode for mobile devices. solidaria-components |
acceptDirectory | false | true | — | Enables directory selection in supported browsers. solidaria-components |
onSelect | (files: FileList | null) => void | — | Called when user selection changes. solidaria-components |
children | number | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement | — | Trigger content (typically a button). solidaria-components |
Declared in packages/viviana-ui/src/filetrigger/index.tsx.
Props marked solidaria or solidaria-components come from the headless layer underneath and behave the same in both registers. Components that wrap a DOM element also accept that element's standard attributes, which are left out here on purpose — listing them would bury the props that are actually ours.