Playground

The real source of Code Editor, with its examples. Change anything; the preview runs in a sandbox. Switch to TypeScript, or start JavaScript with // @ts-check, to check the code against Datastar's types.

Size: 3.7 kB min+br · 10.7 kB with deps · 9.2 kB min · 19.6 kB raw
Saving creates a permanent link anyone can open. Then you can submit it as a component.