Skip to main content
PROYECTOVIVIANA

FileTrigger

The props declared for FileTrigger, generated from the types @proyecto-viviana/ui ships.

Import

import { FileTrigger } from "@proyecto-viviana/ui";

Props

Props for FileTrigger in @proyecto-viviana/ui
PropTypeDefaultDescription
classstring—Additional CSS class for the trigger wrapper.
acceptedFileTypesreadonly string[]—Mime types accepted by the file picker. solidaria-components
allowsMultiplefalse | true—Whether multiple files can be selected. solidaria-components
defaultCamera'user' | 'environment'—Default camera capture mode for mobile devices. solidaria-components
acceptDirectoryfalse | true—Enables directory selection in supported browsers. solidaria-components
onSelect(files: FileList | null) => void—Called when user selection changes. solidaria-components
childrennumber | 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.