{"id":13805494,"url":"https://github.com/bennypowers/codesandbox-button","last_synced_at":"2026-01-07T01:37:58.834Z","repository":{"id":38426467,"uuid":"235185727","full_name":"bennypowers/codesandbox-button","owner":"bennypowers","description":"Custom Element that Shows a CodeSandbox demo when you click on it.","archived":false,"fork":false,"pushed_at":"2023-10-05T02:57:01.000Z","size":2430,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T00:32:20.915Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bennypowers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-01-20T19:49:28.000Z","updated_at":"2023-01-06T08:29:10.000Z","dependencies_parsed_at":"2024-01-07T10:21:35.366Z","dependency_job_id":"c27d10b5-11e1-42c5-a5dd-b94d1ea97c12","html_url":"https://github.com/bennypowers/codesandbox-button","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennypowers%2Fcodesandbox-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennypowers%2Fcodesandbox-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennypowers%2Fcodesandbox-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennypowers%2Fcodesandbox-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bennypowers","download_url":"https://codeload.github.com/bennypowers/codesandbox-button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245931897,"owners_count":20695964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T01:01:01.702Z","updated_at":"2026-01-07T01:37:58.794Z","avatar_url":"https://github.com/bennypowers.png","language":"TypeScript","funding_links":[],"categories":["Standalone Components"],"sub_categories":[],"readme":"## `codesandbox-button.js`:\n\n### class: `CodesandboxButton`, `codesandbox-button`\n\n#### Superclass\n\n| Name         | Module | Package |\n| ------------ | ------ | ------- |\n| `LitElement` |        | lit     |\n\n#### Fields\n\n| Name             | Privacy | Type                  | Default  | Description                                            | Inherited From |\n| ---------------- | ------- | --------------------- | -------- | ------------------------------------------------------ | -------------- |\n| `fontSize`       |         | `number`              | `14`     | font size                                              |                |\n| `hideNavigation` |         | `boolean`             | `false`  | when true, hides navigation in the iframe              |                |\n| `sandboxId`      |         | `string`              |          | five-character id of your sandbox                      |                |\n| `showDemo`       |         | `boolean`             | `false`  | when true, shows the CodeSandbox instead of the button |                |\n| `module`         |         | `string`              |          | path to the default module to display                  |                |\n| `theme`          |         | `'light'\\|'dark'`     | `'dark'` |                                                        |                |\n| `view`           |         | `'editor'\\|'preview'` |          |                                                        |                |\n\n#### Attributes\n\n| Name              | Field          | Inherited From |\n| ----------------- | -------------- | -------------- |\n| `font-size`       | fontSize       |                |\n| `hide-navigation` | hideNavigation |                |\n| `sandbox-id`      | sandboxId      |                |\n| `show-demo`       | showDemo       |                |\n| `module`          | module         |                |\n| `theme`           | theme          |                |\n| `view`            | view           |                |\n\n\u003cdetails\u003e\u003csummary\u003ePrivate API\u003c/summary\u003e\n\n#### Methods\n\n| Name           | Privacy | Description | Parameters | Return | Inherited From |\n| -------------- | ------- | ----------- | ---------- | ------ | -------------- |\n| `getIframeSrc` | private |             |            |        |                |\n| `onClick`      | private |             |            |        |                |\n\n\u003c/details\u003e\n\n\u003chr/\u003e\n\n### Exports\n\n| Kind                        | Name                 | Declaration       | Module                | Package |\n| --------------------------- | -------------------- | ----------------- | --------------------- | ------- |\n| `js`                        | `CodesandboxButton`  | CodesandboxButton | codesandbox-button.js |         |\n| `custom-element-definition` | `codesandbox-button` | CodesandboxButton | codesandbox-button.js |         |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennypowers%2Fcodesandbox-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbennypowers%2Fcodesandbox-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennypowers%2Fcodesandbox-button/lists"}