SUPPORTS_EYE_DROPPER

const
Feature Detection

Boolean feature-detection flag that is `true` when the runtime is a browser AND the `EyeDropper` API is available in `window`. Evaluated once at module initialisation. Used by the color-picker components to conditionally render the eye-dropper button.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Resolved value

Ecosystem

Used by

Composables and components that consume this constant.

Usage

Examples

Ready-to-paste code snippets using this constant.

Conditionally showing the eye-dropper trigger

typescript