Published
Edited
Aug 15, 2022
1 star
Also listed in…
Tips and Utilities
Insert cell
Insert cell
atomico = import('https://unpkg.com/atomico@1.61.1/core.js?module')

Insert cell
Insert cell
function component({ name }) {
return atomico.html`<host shadowDom>Hello, ${name} !</host>`;
}
// WEBCOMPONENT
Insert cell
{
// WEBCOMPONENT PROPERTIES AND ATTRIBUTES
component.props = {
name: String,
};

// WEBCOMPONENT APPEARANCE
component.styles = atomico.css`
:host {
font-size: 30px;
}
`;

customElements.define("my-component", atomico.c(component));
}
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more