{ "cells": [ { "cell_type": "markdown", "id": "307aedfb", "metadata": {}, "source": [ "# Tldraw Gallery\n", "\n", "Welcome! This Gallery will give you an overview of the [tldraw-v1](https://github.com/tldraw/tldraw-v1) api.\n", "\n", "## Basic Shapes" ] }, { "cell_type": "code", "execution_count": 1, "id": "e931b3d1", "metadata": {}, "outputs": [], "source": [ "%load_ext ipyreact" ] }, { "cell_type": "code", "execution_count": 2, "id": "956c39c3", "metadata": { "tags": [ "hide-input" ] }, "outputs": [ { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "f9e8bdd03c094a469c7b586905f6b28f", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Widget()" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "%%react\n", "\n", "import * as React from \"react\";\n", "import { Tldraw } from \"@tldraw/tldraw\";\n", "\n", "export default function App() {\n", " return (\n", "