Skip to content

@nhtio/common-vue/inline_image_field ​

InlineImageField component provides an image upload field with drag-and-drop support, file type validation, automatic image reduction, and customizable dropzone styling.

Example ​

typescript
import { InlineImageField } from "@nhtio/common-vue/inline_image_field";
import type {
  InlineImageFieldProps,
  InlineImageFieldSlots,
} from "@nhtio/common-vue/inline_image_field";

Components ​

ClassDescription
InlineImageFieldInlineImageField component provides an image upload field with drag-and-drop support, file type validation, automatic image reduction, and customizable dropzone styling.

Constants ​

Type AliasDescription
inlineImageFieldRawEmitsEmit validators for the InlineImageField component. Extends base field emits with image-specific events including model value updates and invalid file type validation.

Other ​

Type AliasDescription
makeInlineImageFieldProps-

Types ​

NameDescription
InlineImageFieldHookableEventsType for the hookable events of InlineImageField with cleanup support
InlineImageFieldHookableRawEventsType for the raw emit validators of InlineImageField
InlineImageFieldPropsPublic prop types for the InlineImageField component. Includes base field props plus image-specific configuration for file acceptance, aspect ratio, dimensions, and dropzone styling.
InlineImageFieldSlotsSlot definitions for the InlineImageField component. Extends base slots with a placeholder slot for empty/hover states.
InlineImageFieldHookHandlersHandler type for InlineImageField hooks.