SukoChat
The floating chat widget that appears on all pages of your restaurant website.
Basic usage
import { SukoChat } from '@suko/chat'
<SukoChat apiKey="sk_live_your_key" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
apiKey | string | required | Your Suko API key |
preset | string | 'modern' | Widget style preset |
theme | object | {} | Color overrides |
position | string | 'bottom-right' | Widget position |
baseUrl | string | auto | API base URL (leave empty in production) |
Presets
Available presets: modern, elegant, cozy, minimal, playful, fresh, bold, classic
<SukoChat
apiKey="sk_live_your_key"
preset="elegant"
/>Theme customization
<SukoChat
apiKey="sk_live_your_key"
theme={{
primary: '#FF5C1A',
}}
/>Position
<SukoChat
apiKey="sk_live_your_key"
position="bottom-left"
/>