# @cleartrip/ct-design-portal

> Portal Component

Latest version **5.32.0** (published 2026-11-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install @cleartrip/ct-design-portal
pnpm add @cleartrip/ct-design-portal
yarn add @cleartrip/ct-design-portal
bun add @cleartrip/ct-design-portal
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.32.0 |
| Published | 2026-11-16 |
| First published | 2023-11-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 28.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Cleartrip |
| Maintainers | rahulct_com, supragya.chauhan, nareshkapse_ct, saranshdawra, ct_devops, sidhantrajan, hello_world_arya, ritesh.kumarjena, mohitjaincleartrip, ashwin.ct, ashokmpatel, amansaxena1, aakrishtmalik, prateek.oraon, ashwin-ui-ct, shashi-kumar |

## Links

- npm: https://www.npmjs.com/package/@cleartrip/ct-design-portal
- npm.io page: https://npm.io/package/@cleartrip/ct-design-portal

## Dependencies (1)

- [@cleartrip/ct-design-theme](https://npm.io/package/@cleartrip/ct-design-theme.md) 5.32.0

## Recent versions

- 5.32.0 (latest) — 2026-11-16
- 5.33.0-SNAPSHOT-hdp-revamp-v1.0 (SNAPSHOT-hdp-revamp-v1) — 2026-11-19
- 3.33.0-SNAPSHOT-vt-2.0 (SNAPSHOT-vt-2) — 2026-11-18
- 3.33.0-SNAPSHOT-vt-1.0 (SNAPSHOT-vt-1) — 2026-11-18
- 5.32.0-SNAPSHOT-bs-height-check-161120162106.0 (SNAPSHOT-bs-height-check-161120162106) — 2026-11-16
- 5.32.0-SNAPSHOT-bs-height-check-161120162007.0 (SNAPSHOT-bs-height-check-161120162007) — 2026-11-16
- 5.32.0-SNAPSHOT-5.32.0-SNAPSHOT-bs-height-check-161120161537.0 (SNAPSHOT-5.32.0-SNAPSHOT-bs-height-check-161120161537) — 2026-11-16
- 5.32.0-SNAPSHOT-bs-height-check-151120162243.0 (SNAPSHOT-bs-height-check-151120162243) — 2026-11-15
- 3.33.0-SNAPSHOT-hdp-revamp-v3.0 (SNAPSHOT-hdp-revamp-v3) — 2026-11-12
- 3.33.0-SNAPSHOT-hdp-revamp-v2.0 (SNAPSHOT-hdp-revamp-v2) — 2026-11-12
- 5.32.0-SNAPSHOT-biztrip-rn-sme-snapshot-11-11-26.0 (SNAPSHOT-biztrip-rn-sme-snapshot-11-11-26) — 2026-11-11
- 5.32.0-SNAPSHOT-native-main.2 (SNAPSHOT-native-main) — 2026-11-11
- 5.32.0-SNAPSHOT-fix-intersection-observer-v2.0 (SNAPSHOT-fix-intersection-observer-v2) — 2026-11-02
- 5.32.0-SNAPSHOT-fix-intersection-observer-v1.0 (SNAPSHOT-fix-intersection-observer-v1) — 2026-11-02
- 5.32.0-SNAPSHOT-srp-similar-hotels-v2.0 (SNAPSHOT-srp-similar-hotels-v2) — 2026-10-29
- … 983 more at https://npm.io/package/@cleartrip/ct-design-portal/versions

## README

# Portal

A component that renders its children in a different DOM node.

---

## Installation

```bash
npm install @cleartrip/ct-design-portal
# or
pnpm add @cleartrip/ct-design-portal
```

### Peer dependencies

```bash
# Required for all targets
npm install react

# Web only
npm install react-dom

# React Native only
npm install react-native
```

---

## Usage

### Basic

```tsx
import { Portal } from '@cleartrip/ct-design-portal';

function Example() {
  return (
    <Portal>
      {/* Basic usage */}
    </Portal>
  );
}
```

---

## Props

| Prop | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| `children` | `ReactNode` | — | ✅ Yes | The content to be rendered inside the portal. |
| `id` | `string` | — | ✅ Yes | Unique identifier for the portal instance. On native, this is used by the |

---

## Accessibility

- The component follows accessibility best practices
- Ensure proper ARIA attributes are provided where needed
- Test with screen readers to ensure usability

---

## Migration

If migrating from a previous version:

```diff
- import { Portal } from 'yagami/core/components';
+ import { Portal } from '@cleartrip/ct-design-portal';
```

---
_Source: https://npm.io/package/@cleartrip/ct-design-portal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
