Theme: ← Übersicht Tokens

Datei-Upload (Dropzone)

Upload-Zone (Untitled-UI-Muster): Klick oder Drag-and-Drop, Dateiliste mit Größe und Entfernen — Prototyp ohne Server-Upload, emittet dateien

Components v1.1.1 Formulare WebsiteAppDesktop component.file-upload

Nutzt: ui.icon ui.featured-icon

Beispiele

Dropzone (klicken oder Dateien hineinziehen)
Anhänge

    Eigenschaften

    PropTypDefaultBuilder-Label
    labelstring""Label
    hintstring"PNG, JPG oder PDF (max. 10 MB)"Format-Hinweis
    multiplebooleantrueMehrere Dateien
    acceptstring""accept-Attribut (z.B. image/*,.pdf)
    spacingstring: default | none | sm | md | lg | xl"default"Eigenabstand

    * Pflicht-Prop

    Events & Slots

    Events: ⚡ files — im Surface per on: {<event>: {action, params}} verdrahtbar.

    Stellschrauben (Komponenten-Tokens)

    Ebene 3 — aus dem CSS generiert (Registry). Umverdrahtbar per Hüllen-Komposition, ohne Markup-Eingriff; künftige Regler-Quelle des Component Builders.

    TokenDefault
    --file-upload-action-primaryvar(--color-action-primary)
    --file-upload-border-defaultvar(--color-border-default)
    --file-upload-border-strongvar(--color-border-strong)
    --file-upload-form-backgroundvar(--form-background)
    --file-upload-radius-controlvar(--radius-control)
    --file-upload-radius-smvar(--radius-sm)
    --file-upload-radius-surfacevar(--radius-surface)
    --file-upload-status-dangervar(--color-status-danger)
    --file-upload-surface-sunkenvar(--color-surface-sunken)
    --file-upload-text-defaultvar(--color-text-default)
    --file-upload-text-mutedvar(--color-text-muted)

    Genutzte Design-Tokens

    border.hairlinecolor.action.primarycolor.border.defaultcolor.border.strongcolor.status.dangercolor.surface.sunkencolor.text.defaultcolor.text.mutedduration.fasteasing.standardfont.family.defaultform.backgroundradius.controlradius.smradius.surfacesize.12size.3size.4size.6size.8text.smtext.xsweight.mediumweight.semibold