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.1.0
Install (React)npm install @nylas/react
Import (React)import { InputColorPicker } from '@nylas/react';

Properties

PropertyAttributeDescriptionTypeDefault
defaultSelectedColordefault-selected-colorThe default selected colorstring | undefinedundefined
name (required)nameThe 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