feat(www): Add api docs (#161)

This commit is contained in:
Wanjohi
2025-01-21 03:38:22 +03:00
committed by GitHub
parent 4a27f54e80
commit 9b8d187887
6 changed files with 48 additions and 14 deletions

View File

@@ -0,0 +1,19 @@
import type { PartytownConfig } from "@builder.io/partytown/integration";
import { partytownSnippet } from "@builder.io/partytown/integration";
/**
* Props for `<QwikPartytown/>`, which extends the Partytown Config.
*
* https://github.com/BuilderIO/partytown#config
*
* @public
*/
export interface PartytownProps extends PartytownConfig {}
/**
* @public
* You can pass setting with props
*/
export const QwikPartytown = (props: PartytownProps): any => {
return <script dangerouslySetInnerHTML={partytownSnippet(props)} />;
};