Skip to content

Variable: RStringColorFieldMode

ts
const RStringColorFieldMode: readonly ["hex", "hexa"];

Color picker mode options for the color format. Determines the color representation and input format in the color picker interface.

  • hex: Standard 6-digit hexadecimal color format (#RRGGBB)
  • hexa: Extended 8-digit hexadecimal with alpha channel (#RRGGBBAA)

Example

typescript
// Color picker will default to hex mode
const [colorMode, setColorMode] = useState<RStringColorFieldMode>("hex");

// Switch to alpha channel support
setColorMode("hexa");