Skip to content

Conversation

razor-x
Copy link
Member

@razor-x razor-x commented May 30, 2023

Once this is on main, can test these via single script tag and add proper docs.

Should work with single HTML file

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Web components example - Seam React Components</title>
  </head>
  <body>
    <main class="seam-components">
      <seam-device-table
        publishable-key="seam_pk1J0Bgui_oYEuzDhOqUzSBkrPmrNsUuKL"
        user-identifier-key="f61731b1-48a3-4b61-8767-e6268c17269c"
      ></seam-device-table>
      <seam-supported-device-table
        publishable-key="seam_pk1J0Bgui_oYEuzDhOqUzSBkrPmrNsUuKL"
        user-identifier-key="f61731b1-48a3-4b61-8767-e6268c17269c"
      ></seam-supported-device-table>
    </main>
    <script type="module" src="https://react.seam.co/v/1.7.0/dist/elements.js"></script>
  </body>
</html>

@razor-x razor-x changed the title feat: Add experimental web component Add web components Jun 1, 2023
@razor-x razor-x marked this pull request as ready for review June 2, 2023 03:30
@razor-x razor-x requested a review from azat-co as a code owner June 2, 2023 03:30
@razor-x razor-x requested review from codetheweb, mikewuu and xplato June 2, 2023 03:30
@razor-x razor-x changed the title Add web components Bundle custom elements (web components) Jun 2, 2023
@razor-x razor-x linked an issue Jun 2, 2023 that may be closed by this pull request
Copy link
Contributor

@xplato xplato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super cool; lgtm!

@razor-x razor-x merged commit e5daafe into main Jun 2, 2023
@razor-x razor-x deleted the webcomponent branch June 2, 2023 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create web component bundle

3 participants