# ContainerArgs

Interface · extends [`IParentArgs`](https://api.playcanvas.com/pcui/interfaces/IParentArgs.md)

Source: https://github.com/playcanvas/pcui/blob/77ed2b8ba8660c9644049b0d1942652721e7a6c4/src/components/Container/index.ts#L26

The arguments for the [Container](https://api.playcanvas.com/pcui/classes/Container.md) constructor.

## Properties

### flex

```ts
flex?: boolean
```

Sets whether the [Container](https://api.playcanvas.com/pcui/classes/Container.md) uses flex layout.

### grid

```ts
grid?: boolean
```

Sets whether the [Container](https://api.playcanvas.com/pcui/classes/Container.md) supports the grid layout.

### onResize

```ts
onResize?: () => void
```

Called when the [Container](https://api.playcanvas.com/pcui/classes/Container.md) has been resized.

### resizable

```ts
resizable?: string
```

Sets whether the [Container](https://api.playcanvas.com/pcui/classes/Container.md) is resizable and where the resize handle is located. Can
be one of 'top', 'bottom', 'right', 'left'. Defaults to `null` which disables resizing.

### resizeMax

```ts
resizeMax?: number
```

Sets the maximum size the [Container](https://api.playcanvas.com/pcui/classes/Container.md) can take when resized in pixels.

### resizeMin

```ts
resizeMin?: number
```

Sets the minimum size the [Container](https://api.playcanvas.com/pcui/classes/Container.md) can take when resized in pixels.

### scrollable

```ts
scrollable?: boolean
```

Sets whether the [Container](https://api.playcanvas.com/pcui/classes/Container.md) should be scrollable.

## Inherited from ElementArgs

- `alignItems?: string`
- `alignSelf?: string`
- `binding?: BindingBase`
- `class?: string | string[]`
- `dom?: string | HTMLElement`
- `enabled?: boolean`
- `error?: boolean`
- `flexBasis?: string | number`
- `flexDirection?: string`
- `flexGrow?: string | number`
- `flexShrink?: string | number`
- `flexWrap?: string`
- `height?: number`
- `hidden?: boolean`
- `id?: string`
- `ignoreParent?: boolean`
- `isRoot?: boolean`
- `justifyContent?: string`
- `justifySelf?: string`
- `link?: { observer: Observer | Observer[]; path: string | string[] }`
- `onChange?: (value: unknown) => void`
- `onClick?: () => void`
- `onRemove?: () => void`
- `parent?: Element`
- `readOnly?: boolean`
- `style?: string`
- `tabIndex?: number`
- `width?: number`

## Inherited from [IParentArgs](https://api.playcanvas.com/pcui/interfaces/IParentArgs.md)

- `children?: ReactNode`
