Skip to main content

ColorSelect API Overview

Initialization

<script>
import { ColorSelect } from "wx-svelte-core";
</script>

<!-- 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

clearadds/removes the cross icon for clearing the value of a color select
colorsspecifies a set of color values
disableddefines whether a color select is disabled
errordefines whether error styling is applied to a color select
idsets an HTML id for a color select
placeholdersets a text for the input's placeholder
titlesets a tooltip text with additional info about the control
valuesets the value of a color select