s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Images · Components

ImageUploader

Upload images with metadata extraction and AI categorization

Public export

typescript
import { ImageUploader } from '@happyvertical/smrt-images/svelte';
Import path
@happyvertical/smrt-images/svelte
Props
7
Props described
0 of 7
Bindable state
0
Callback events
2
Verified release
0.44.0

Props

NameTypeRequiredDescription
apiBaseUrlstringNoNot described
editorClientImageEditorClientNoNot described
galleryClientImagesGalleryClientNoNot described
onSelect(image: ImageLike | File | string) => voidYesNot described
onCancel() => voidNoNot described
allowedTabs('gallery' | 'upload' | 'camera' | 'external')[]NoNot described
enableDragToEditorbooleanNoNot described

Bindable state

This component has no bindable public state.

Callback events

  • onSelect(image: ImageLike | File | string) => void
  • onCancel() => void

Examples and explanation