Mixins / foldkit-mixins-ui

FileUploadProgress

namespace · packages/mixins-ui/src/fileUpload/progress.ts:1

export * as FileUploadProgress from './fileUpload/progress.js'

Members

FileUploadProgress.make

function · packages/mixins-ui/src/fileUpload/progress.ts:46

function make(options?: {
  readonly style?: NamedStyle<typeof UiProgress.ProgressSlots> | undefined
}): Progress

style is a style of ProgressSlots: Recipes.Progress({}) for a bar, { shape: 'ring' } for a ring.

FileUploadProgress.Progress

interface · packages/mixins-ui/src/fileUpload/progress.ts:12

interface Progress {
  readonly draw: <Outer>(
    options: {
      readonly id: string
      readonly entry: Entry
      readonly label: string
    },
    h: HtmlBuilder<Outer>,
  ) => Html
}

How a FileUpload draws an uploading entry: a Progress bar or ring, built by the application and handed to the view as progress. It lives in a module of its own so a field that sends nothing never loads the Progress widget.