(feat:widget) udpate docs

This commit is contained in:
ManishMadan2882
2025-02-18 14:19:53 +05:30
parent 67e37f1ce1
commit 13cd221fe5
2 changed files with 2 additions and 1 deletions

View File

@@ -143,6 +143,7 @@ The DocsGPT Widget offers a range of customizable properties that allow you to t
| **`buttonIcon`** | `string` | `"https://your-icon"` | URL for the icon image used in the widget's launch button. |
| **`buttonBg`** | `string` | `"#222327"` | Background color of the widget's launch button. |
| **`size`** | `"small" \| "medium"` | `"medium"` | Size of the widget. Options: `"small"` or `"medium"`. Defaults to `"medium"`. |
| **`showSources`** | `boolean` | `false` | Enables displaying source URLs for data fetched within the widget. When set to `true`, the widget will show the original sources of the fetched data. |
---

View File

@@ -4,7 +4,7 @@ export default function MyApp({ Component, pageProps }) {
return (
<>
<Component {...pageProps} />
<DocsGPTWidget apiKey="d61a020c-ac8f-4f23-bb98-458e4da3c240" theme="dark" size="medium" />
<DocsGPTWidget showSources={true} apiKey="bae7004a-2344-4882-9e2f-259128e78843" theme="dark" size="medium" />
</>
)
}