Public
Edited
Mar 23, 2023
1 star
Insert cell
Insert cell
button
Insert cell
viewof button = {
const button = html`<button>Click me</button>`;
button.value = 0;
button.classList.add("btn", "btn-primary");
button.onclick = () => {
button.value++;
button.dispatchEvent(new CustomEvent("input", {bubbles: true}));
};
return button;
}
Insert cell
Insert cell
stylesheet = html`<code>CSS</code> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">`
Insert cell
import('https://unpkg.com/popper.js@2.0.0-next.4/lib/index.js?module')
Insert cell
bootstrap = require('bootstrap@5')
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more