# CallControls

> Props, styling and a live CallControls example.

`CallControls` from `@polymorfa/react`. Choose props and styles above; the preview stays visible in every code view.

## Props

| Prop | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `className` | `string` | Optional |  |  |
| `disableVideo` | `boolean` | Optional | `false` | Hide the camera control even when the call can carry video. |
| `showLeave` | `boolean` | Optional | On calls nobody claimed | Show a Leave button that closes only this connection. Defaults to showing it on calls nobody claimed, where others can stay in the call. Never shown on a call this client placed that has not connected: nobody else is on it, so the red button ends it. The red button always ends the call for everyone. |
| `controller` | `CallsController` | Optional |  |  |
| `createController` | `() => CallsController` | Optional |  |  |

## Styling

Use `className`, `classNames` (a class for any [slot](https://docs.polymorfa.com/ui-kit/appearance#slots), typed `SlotClassNames`), appearance variables and element styles. The Style panel applies changes to the live component. See [Appearance](https://docs.polymorfa.com/ui-kit/appearance).

## Setup

Use [the provider and server route](https://docs.polymorfa.com/ui-kit/setup) for your application. The preview above uses local sample data and controllers. [Chat controllers](https://docs.polymorfa.com/ui-kit/chat#controllers) and [inbox data sources](https://docs.polymorfa.com/ui-kit/inbox#data-sources) keep your data separate from the UI.
