Wirebird
The all-in-one view. Inbox for texts and calls, setup, call settings, and the call bar.
import { Wirebird } from '@wirebird/react';
<Wirebird />;The simplest integration: one component gives a business everything. It has two views:
- Setup: pick a number, enter business details for texting registration, call settings.
- Inbox: conversations, with texts and calls together in each thread.
It also includes the floating call bar for calling out from the browser.
Without a view prop, it opens on Setup until the business has a number, then on the Inbox.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
view | 'inbox' | 'setup' | Chosen automatically | Controls the open view. Pass it to drive the view from your own navigation. |
onViewChange | (view) => void | Called when someone opens a view. Use it with view to keep your URL in sync. | |
height | number | string | 640 | Fixed height in pixels or any CSS length. The inside scrolls, never your page. |
const [view, setView] = useState<WirebirdView>('inbox');
<Wirebird view={view} onViewChange={setView} height="calc(100vh - 64px)" />;