Skip to main content

ColorSelect API Overview

Initialization

import { ColorSelect } from "@svar-ui/react-core";

// minimal configuration for initialization
<ColorSelect />
tip
  • Visit the Features Guide to learn more about the control's functionality.
  • Explore the samples to visualize the available features.

ColorSelect Properties

clearOptional. Adds the Clear button into the input
colorsOptional. Specifies a set of color values
disabledOptional. Defines whether a color select is disabled
errorOptional. Defines whether error styling is applied to a color select
idOptional. Sets an HTML id for a color select
placeholderOptional. Sets a text for the input's placeholder
titleOptional. Sets a tooltip text with additional info about the control
valueOptional. Sets the value of a color select

ColorSelect Events

changeOptional. Fires when a new value is selected in the control