# SafeAreaContainer

A container that respects safe area boundaries on mobile devices.

---

## Installation

```bash
npm install @cleartrip/ct-design-safe-area-container
# or
pnpm add @cleartrip/ct-design-safe-area-container
```

### 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 { SafeAreaContainer } from '@cleartrip/ct-design-safe-area-container';

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

---

## Props

| Prop | Type | Default | Required | Description |
|------|------|---------|----------|-------------|
| `children` | `ReactNode` | — | ✅ Yes | Content rendered inside the safe-area padded wrapper. |
| `styleConfig` | `SafeAreaContainerStyleConfigProps` | — | No | Optional style overrides applied after the computed safe-area |


---

## 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 { SafeAreaContainer } from 'yagami/core/components';
+ import { SafeAreaContainer } from '@cleartrip/ct-design-safe-area-container';
```
