mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-13 17:25:36 +02:00
⭐feat(www): Add api docs (#161)
This commit is contained in:
19
apps/www/src/components/partytown/partytown.tsx
Normal file
19
apps/www/src/components/partytown/partytown.tsx
Normal 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)} />;
|
||||
};
|
||||
Reference in New Issue
Block a user