Published
Edited
3 forks
Importers
5 stars
Insert cell
Insert cell
Insert cell
viewof text = Inputs.text()
Insert cell
text
Insert cell
Insert cell
viewof name = Inputs.text({label: "Name", placeholder: "Enter your name", value: "Anonymous"})
Insert cell
name
Insert cell
Insert cell
viewof signature = Inputs.text({label: html`<b>Fancy</b>`, placeholder: "What’s your fancy?"})
Insert cell
Insert cell
viewof password = Inputs.password({label: "Password", value: "open sesame"})
Insert cell
password
Insert cell
Insert cell
viewof email = Inputs.text({type: "email", label: "Email", placeholder: "Enter your email"})
Insert cell
[email, viewof email.checkValidity()]
Insert cell
Insert cell
viewof query = Inputs.text({label: "Query", placeholder: "Search", submit: true})
Insert cell
query
Insert cell
Insert cell
capitals = FileAttachment("us-state-capitals.tsv").tsv({typed: true})
Insert cell
viewof state = Inputs.text({
label: "U.S. state",
placeholder: "Enter state name",
datalist: capitals.map(d => d.State)
})
Insert cell
state
Insert cell
Insert cell
viewof fixed = Inputs.text({label: "Fixed value", value: "Can’t edit me!", disabled: true})
Insert cell
fixed
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