Pular para o conteúdo

Color Picker

Este conteúdo não está disponível em sua língua ainda.

The ColorPicker component allows users to select or input colors visually.
It can be used in forms, design tools, dashboards, or any UI where color selection is needed.

  • Interactive selection: Pick colors via sliders, palettes, or direct input.
  • Live preview: Shows the selected color in real-time.
  • Customizable value: Supports HEX, RGB, or other formats depending on your implementation.
  • Reactive binding: Easily bind the selected color to your state.
#fde6b0
PropTypeDefaultDescription
valuestring"#ffffff"Current selected color value (HEX format).
oninputfunctionundefinedCallback triggered when the color changes. Receives the input event.
stylestring""Inline styles for custom layout or preview container.
  • Use live color preview to give immediate feedback to users.
  • Keep contrast and accessibility in mind when selecting default colors.
  • Bind the value to your application state for reactive updates.
  • Provide fallback colors if user input is invalid.
  • Combine with labels or tooltips for clarity on what the selected color affects.