# Client Only

URL: https://ark-ui.com/docs/react/utilities/client-only
Markdown: https://ark-ui.com/docs/react/utilities/client-only.md

Render content only on the client side.

---

---
id: client-only
title: Client Only
description: Render content only on the client side.
---

`ClientOnly` renders its children only on the client, for content that needs the DOM or browser APIs.

## Examples

### Basic

```tsx
import { ClientOnly } from '@ark-ui/react/client-only'

export const Basic = () => (
  <ClientOnly>
    <div>This content is only rendered on the client side.</div>
  </ClientOnly>
)
```

### With Fallback

```tsx
import { ClientOnly } from '@ark-ui/react/client-only'

export const WithFallback = () => (
  <ClientOnly fallback={<div>Loading...</div>}>
    <div>This content is only rendered on the client side.</div>
  </ClientOnly>
)
```

## API Reference

### ClientOnly

#### Props

**`fallback`**
Type: `any`
Required: false
Default Value: `undefined`
Description: undefined
