Use our cssText IntelliSense extension for VS Code to get CSS syntax highlighting and completions inside style.cssText template literals.
Real DOM elements, native browser APIs, and less ceremony for vanilla JavaScript and TypeScript builders.
Returns a readable browser and device description, such as Chrome · Windows · desktop. Uses the user agent and available Client Hints, omitting missing values.
- Runtimes: browsers with a DOM; import after the document body exists.
- Module format: ESM and CommonJS.
- Types: bundled
.d.ts.
Suite: Playwright — user-agent descriptions, Client Hints, element factories, document roots, styles, events, forms, tables, and lists.
Matrix: Chromium / Firefox / WebKit + mobile Chrome and Safari emulation.
Coverage: Chromium Playwright runs, mapped to TypeScript sources and reported to Codecov.
Apache-2.0

