Image#

pydantic model zero_true.Image#

Image component for displaying web hosted or local images. Supports .png, .jpg, and .jpeg file types

Show JSON schema
{
   "title": "Image",
   "description": "Image component for displaying web hosted or local images. Supports .png, .jpg, and .jpeg file types",
   "type": "object",
   "properties": {
      "id": {
         "description": "Unique id for a component",
         "title": "Id",
         "type": "string"
      },
      "variable_name": {
         "default": "",
         "description": "Optional variable name associated with a component",
         "title": "Variable Name",
         "type": "string"
      },
      "component": {
         "default": "v-img",
         "description": "Vue component name",
         "title": "Component",
         "type": "string"
      },
      "src": {
         "description": "Source URL or Path of the image",
         "title": "Src",
         "type": "string"
      },
      "alt": {
         "default": "",
         "description": "Alternative text for the image",
         "title": "Alt",
         "type": "string"
      },
      "width": {
         "default": 100,
         "description": "Width of the image",
         "title": "Width",
         "type": "integer"
      },
      "height": {
         "default": 100,
         "description": "Height of the image",
         "title": "Height",
         "type": "integer"
      }
   },
   "required": [
      "id",
      "src"
   ]
}

field alt: str = ''#

Alternative text for the image

field component: str = 'v-img'#

Vue component name

field height: int = 100#

Height of the image

field src: str [Required]#

Source URL or Path of the image

Validated by:
  • validate_src

field width: int = 100#

Width of the image