UNPKG

@voxket-ai/voxket-live

Version:

A React widget for embedding Voxket-powered audio/video/chat experiences.

36 lines (35 loc) 1.34 kB
import * as React from 'react'; export type CommonPopupPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'; export interface CommonPopupTriggerProps { onClick: () => void; position?: CommonPopupPosition; size?: number; className?: string; style?: React.CSSProperties; ariaLabel?: string; /** * Scale of the logo inside the circle (0 to 1). Default is 0.75 (75%). */ logoScale?: number; /** * When true, show a subtle glowing border to indicate an active running session. */ isRunning?: boolean; /** * Custom logo URL. If not provided, uses the bundled Voxket logo */ logoUrl?: string; /** * Theme for styling. 'light' uses white background with indigo border, others use black background. */ theme?: 'dark' | 'light' | 'vox' | 'midnight' | 'levish'; } /** * CommonPopupTrigger * A theme-aware popup trigger: circular button with bundled Voxket logo centered. * Uses the logo bundled with the SDK, positioned in any corner. * When session is active (isRunning=true), shows an elegant glowing border animation. * In light theme, uses white background with indigo border. In dark themes, uses black background. */ export declare const CommonPopupTrigger: React.FC<CommonPopupTriggerProps>; export default CommonPopupTrigger;