@yarcl/react
    Preparing search index...

    Function ColorPicker

    • Edits an opaque hex color with a native chooser, keyboard text entry and optional named presets. Enter or blur commits valid text; invalid text and Escape restore the accepted color. The first Enter commits a draft without submitting a form. Native form reset restores uncontrolled defaults.

      Parameters

      Returns Element

      <Field label="Highlight color"><ColorPicker defaultValue="#4f46e5" name="highlight" /></Field>