@voxket-ai/voxket-live 1.0.22 → 1.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -29,13 +29,11 @@ npm install @voxket-ai/voxket-live@latest
29
29
 
30
30
  ## Usage
31
31
 
32
- To use the Voxket Live widget in your React application, you need to import both the component and its styles:
32
+ To use the Voxket Live widget in your React application, simply import and use the component. **No separate CSS import is required** - styles are automatically included:
33
33
 
34
34
  ```tsx
35
35
  import React from 'react';
36
36
  import VoxketWidget, { VoxketWidgetProps } from '@voxket-ai/voxket-live';
37
- // Import the CSS styles - REQUIRED for proper styling
38
- import '@voxket-ai/voxket-live/dist/index.css';
39
37
 
40
38
  const MyCustomApp = () => {
41
39
  const widgetProps: VoxketWidgetProps = {
@@ -63,19 +61,9 @@ const MyCustomApp = () => {
63
61
  export default MyCustomApp;
64
62
  ```
65
63
 
66
- ### Important Notes on CSS
64
+ ### Auto-Included Styles
67
65
 
68
- 1. **CSS Import is Required**: You must import the CSS file for proper styling:
69
- ```tsx
70
- import '@voxket-ai/voxket-live/dist/index.css';
71
- ```
72
-
73
- 2. **Import Order**: Import the CSS after the component import for best practices.
74
-
75
- 3. **Alternative CSS Import Methods**:
76
- - In your main CSS file: `@import '@voxket-ai/voxket-live/dist/index.css';`
77
- - In your application's entry point (e.g., `main.tsx` or `index.tsx`)
78
- - Via your bundler's configuration (Webpack, Vite, etc.)
66
+ As of version 1.0.22+, **CSS styles are automatically injected** when you import the component. You don't need to manually import any CSS files!
79
67
 
80
68
  ## Props
81
69