mazey
    Preparing search index...

    Function getBrowserClassNames

    • 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);

      Output:

      ["windows", "desktop", "webkit", "chrome"]
      

      Parameters

      • prefix: string = ""

        Optional prefix for every class name.

      • separator: string = "-"

        Separator between a non-empty prefix and each value. Defaults to -.

      Returns string[]

      Browser classification class names.

      Browser only.