Skip to main content

ColorPicker API Overview

Initialization

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

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

ColorPicker Properties

disableddefines whether a color picker is disabled
errordefines whether error styling is applied to a color picker
idsets an HTML id for a color picker
placeholdersets a text for the input's placeholder
titlesets a tooltip text with additional info about the control
valuesets the value of a color picker