cal.pub0.org/packages/embeds/embed-react/test-cal.tsx

27 lines
645 B
TypeScript
Raw Normal View History

2022-03-31 08:45:47 +00:00
import ReactDom from "react-dom";
import Cal from "@calcom/embed-react";
function App() {
return (
<>
<h1>
There is <code>Cal</code> component below me
</h1>
<Cal
calOrigin="http://localhost:3000"
2022-03-31 08:45:47 +00:00
embedJsUrl="//localhost:3002/dist/embed.umd.js"
calLink="pro"
config={{
name: "John Doe",
email: "johndoe@gmail.com",
notes: "Test Meeting",
guests: ["janedoe@gmail.com"],
theme: "dark",
}}></Cal>
<button data-cal-link="pro">Popup</button>
2022-03-31 08:45:47 +00:00
</>
);
}
ReactDom.render(<App></App>, document.getElementById("root"));