Get CSS class-name tokens from the cached browser classification.
Each available classification value receives the optional prefix and separator. This function returns strings without modifying the DOM.
Usage:
import { getBrowserClassNames } from "mazey";const attrs = getBrowserClassNames();console.log(attrs); Copy
import { getBrowserClassNames } from "mazey";const attrs = getBrowserClassNames();console.log(attrs);
Output:
["windows", "desktop", "webkit", "chrome"] Copy
["windows", "desktop", "webkit", "chrome"]
Optional prefix for every class name.
Separator between a non-empty prefix and each value. Defaults to -.
-
Browser classification class names.
Browser only.
Get CSS class-name tokens from the cached browser classification.
Each available classification value receives the optional prefix and separator. This function returns strings without modifying the DOM.
Usage:
Output: