Form Components

input-color-picker

Overview

The input-color-picker component is a dropdown that allows users to select an accent color from either RGB inputs or an interactive color picker and converts them to a hex value. This component is used in the scheduling form to input dropdown type inputs.

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

Properties

PropertyAttributeDescriptionTypeDefault
defaultSelectedColorThe default selected colorstring | undefinedundefined
name _(required)_The name of the dropdownstringundefined

Events

EventDescriptionType
nylasFormDropdownChangedThis event is fired when the selected option is changedCustomEvent<{ value: string; name: string; error?: string | undefined; label?: string | undefined; }>

Shadow Parts

PartDescription
"icp_color-picker"The dropdown container
"icp_color-picker-button"The dropdown button
"icp_color-picker-button-selected-label"The selected option label
"icp_color-picker-label"The dropdown label

Graph


Built with StencilJS