UNPKG

@magica11y/light-level

Version:

Detects the ambient light-level of the user’s device using the 'light-level' CSS3 level 5 media query.

10 lines (6 loc) 219 B
// @flow import lightLevel from './lightLevel'; import availableLightLevels, { type LightLevel } from './availableLightLevels'; export default lightLevel; export { availableLightLevels }; export type { LightLevel };