Skip to content

ColorInputRoot ​

ColorInputRoot converte il Color value corrente in Hex e fornisce Functions per aggiornarlo tramite Hex string oppure oggetto Color completo.

vue
<ColorInputRoot :color="color" @update="color = $event" v-slot="{ hex, updateFromHex }">
  <input :value="hex" @input="updateFromHex(($event.target as HTMLInputElement).value)" />
</ColorInputRoot>

Vedi anche ​

Released under the MIT License.