tldraw/apps/examples/src
Lu Wilson 7a09581081
Add example for external UI (#2846)
This PR adds an example for how to add external UI components.

It's something that I've been asked for help with in the past, and it's
something I wish more consumers would do when using tldraw inline - it
would help the editor feel less cramped. Therefore, I'd like to have it
is as an example we can point people to.

![2024-02-19 at 11 53 18 - Maroon
Boar](https://github.com/tldraw/tldraw/assets/15892272/f043bb77-3181-4a7d-b736-2b6a5012e208)

> Some other context:
> We've talked about giving this sorta thing more first-class support in
the future, eg: with a `useEditorInstance` hook or something.

Closes TLD-2128

### Change Type

- [x] `documentation` — Changes to the documentation only[^2]

[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version

### Test Plan

1. Try out the External UI example.
2. Make sure you can change tool by pressing the toolbar buttons.
3. Make sure you can change tool by pressing keys (eg: d, e)

- [ ] Unit Tests
- [ ] End to end tests

### Release Notes

- Docs: Added external UI example.

---------

Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2024-02-23 16:07:08 +00:00
..
examples Add example for external UI (#2846) 2024-02-23 16:07:08 +00:00
hooks debug: add FPS counter (#2558) 2024-01-24 12:23:26 +00:00
icons New vite-based examples app (#1226) 2023-05-05 13:10:36 +00:00
misc Examples tweaks (#2681) 2024-02-02 17:36:30 +00:00
ExamplePage.tsx examples: clean up Canvas/Store events and make UiEvents have code snippets (#2770) 2024-02-07 16:51:04 +00:00
examples.tsx docs: rework docs site to have different sections (#2686) 2024-01-30 14:19:25 +00:00
index.html seo: take 2 (#2817) 2024-02-15 11:28:43 +00:00
index.tsx Roundup fixes (#2862) 2024-02-19 14:52:43 +00:00
styles.css examples: clean up Canvas/Store events and make UiEvents have code snippets (#2770) 2024-02-07 16:51:04 +00:00
vite-env.d.ts add descriptions to examples (#2375) 2023-12-27 17:17:18 +00:00