---
title: ":is()"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/client/selectors/pseudo-classes/is"
image: "https://docs.vlt.io/og/client/selectors/pseudo-classes/is"
lang: "en"
---

# :is()

The `:is()` pseudo-class takes a forgiving selector list and matches any element that can be selected by one of the selectors in that list. It works like the [CSS `:is()` selector](https://developer.mozilla.org/en-US/docs/Web/CSS/:is) and is useful for writing compact selectors.

## Syntax

```
:is(<forgiving-selector-list>)
```

The selector list is **forgiving** — any invalid selectors in the list are silently ignored rather than causing the entire selector to fail.

## Examples

### Compact selector lists

Without `:is()`:

```bash title="Terminal"
$ vlt query ':root > [name=react], :root > [name=vue], :root > [name=svelte]'
```

With `:is()`:

```bash title="Terminal"
$ vlt query ':root > :is([name=react], [name=vue], [name=svelte])'
```

Both queries produce the same result — direct dependencies named `react`, `vue`, or `svelte`.

### Forgiving behavior

Invalid selectors in the list are ignored:

```bash title="Terminal"
$ vlt query ':is([name=react], :nonexistent, [name=vue])'
```

This still matches `react` and `vue` — the `:nonexistent` pseudo-class is silently skipped.

## See also

- [`:not()`](https://docs.vlt.io/client/selectors/pseudo-classes/not.md) — negation pseudo-class
- [`:has()`](https://docs.vlt.io/client/selectors/pseudo-classes/has.md) — dependency matching
