# DialPad

> Props, styling and a live DialPad example.

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

## Props

| Prop | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `defaultValue` | `string` | Optional |  | Prefill the number field. |
| `allowVideo` | `boolean` | Optional | `true` | Offer a video-call button. Default `true`. Set it to `false` for numbers whose calls cannot carry video. |
| `onPlaced` | `(to: string) => void` | Optional |  | Called once the call is actually placed, not when a placement fails. |
| `className` | `string` | Optional |  |  |
| `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.
