Options
All
  • Public
  • Public/Protected
  • All
Menu

Module node_modules/@melloware/coloris/dist/coloris

Index

Type Aliases

ColorFormat: "hex" | "rgb" | "hsl" | "auto" | "mixed"

Color format used by the color picker. The format affects which value is shown in the input field.

  • hex outputs #RRGGBB or #RRGGBBAA.
  • rgb outputs rgb(R, G, B) or rgba(R, G, B, A).
  • hsl outputs hsl(H, S, L) or hsla(H, S, L, A).
  • auto guesses the format from the active input field. Defaults to hex if it fails.
  • mixed outputs #RRGGBB when alpha is 1; otherwise rgba(R, G, B, A).
OnChangeCallback: ((color: string) => void)

Type declaration

    • (color: string): void
    • A function that is called whenever a new color is picked.

      since

      0.18.0

      Parameters

      • color: string

        The newly selected color, as a CSS color string.

      Returns void

Theme: "default" | "large" | "polaroid" | "pill"

All color themes supported by the color picker. More themes might be added in the future.

ThemeMode: "light" | "dark" | "auto"

All theme modes.

Functions

Generated using TypeDoc