Form Components

input-image-url

Overview

The nylas-image-input component is a UI component that allows users input an image URL and see a preview of the image.

Version1.1.4
Install (React)npm install @nylas/react
Import (React)import { InputImageUrl } from '@nylas/react';
Import (CDN)<script type="module"> import { defineCustomElement } from "https://cdn.jsdelivr.net/npm/@nylas/web-elements@latest/dist/cdn/input-image-url/input-image-url.es.js"; defineCustomElement(); </script>

Properties

PropertyAttributeDescriptionTypeDefault
errorMessageError message to display when the image URL is invalid.string''
imageUrlImagestring''
nameThe name of the componentstring'input-image-url'

Events

EventDescriptionType
valueChangedThis event is fired when the image URL is changedCustomEvent<{ value: string; name: string; valueChanged?: ((event: CustomEvent<{ value: string; name: string; }>) => void) | undefined; }>

Shadow Parts

PartDescription
"iiu__logo-input-textfield"The image input textfield

Built with StencilJS