# @splunk/ui-utils

> Library of common UI utilities

Latest version **1.14.1** (published 2026-08-18) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @splunk/ui-utils
pnpm add @splunk/ui-utils
yarn add @splunk/ui-utils
bun add @splunk/ui-utils
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.14.1 |
| Published | 2026-08-18 |
| First published | 2019-10-14 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Splunk Inc. |
| Maintainers | splunker, vtsvetkov-splunk, splunk_sui_publish |

## Links

- npm: https://www.npmjs.com/package/@splunk/ui-utils
- Homepage: https://splunkui.splunk.com/Packages/ui-utils
- npm.io page: https://npm.io/package/@splunk/ui-utils

## Recent versions

- 1.14.1 (latest) — 2026-08-18
- 1.14.0 — 2026-05-07
- 1.13.0 — 2026-04-10
- 1.12.0 — 2025-11-05
- 1.11.0 — 2025-10-07
- 1.10.0 — 2025-07-02
- 1.9.0 — 2025-06-04
- 1.8.0 — 2025-02-14
- 1.7.1 — 2024-08-27
- 1.7.0 — 2024-08-08
- 1.6.0 — 2023-05-02
- 1.5.2 — 2022-12-06
- 1.5.1 — 2022-10-06
- 1.5.0 — 2022-06-30
- 1.4.0 — 2021-09-08
- … 4 more at https://npm.io/package/@splunk/ui-utils/versions

## README

# @splunk/ui-utils

A library of common UI utilities.

## Install

```
npm install @splunk/ui-utils
```

## Usage

Individual functions can be imported from several named modules.

Boolean example:
```js
import { normalizeBoolean } from '@splunk/ui-utils/boolean';
```

Cookie example:
```js
import { getEntry } from '@splunk/ui-utils/cookie';
```

Filter example:
```js
import { filterByKeywords } from '@splunk/ui-utils/filter';
```

Focus example:
```js
import { takeFocus } from '@splunk/ui-utils/focus';
```

Format example:
```js
import { smartTrim } from '@splunk/ui-utils/format';
```

Id example:
```js
import { createDOMID } from '@splunk/ui-utils/id';
```

Internationalization example:
```js
import { _ } from '@splunk/ui-utils/i18n';
```

Keyboard example:
```js
import { isNumber } from '@splunk/ui-utils/keyboard';
```

Math example:
```js
import { strictParseFloat } from '@splunk/ui-utils/math';
```

Scroll example:
```js
import { scrollIntoViewIfNeeded } from '@splunk/ui-utils/scroll';
```

Style example:
```js
import { toClassName } from '@splunk/ui-utils/style';
```

User Agent example:
```js
import { isIE11 } from '@splunk/ui-utils/userAgent';
```

---
_Source: https://npm.io/package/@splunk/ui-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
