016dcdc56a
This PR adds an example demonstrating some common practices for using tldraw as an inline block. For example, in Notion-like applications. This includes: - Making sure that only one editor has focus at a time. - Always defaulting to the hand tool when you click into an editor. - Deselecting everything when an editor loses focus. - Hiding the UI when an editor is not focused. - Disabling edge scrolling by default. - Using a stripped down UI to make the most of the available space. - Removing actions from the context menu to match the stripped down UI. ### 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 **Inline behavior** example. - [ ] Unit Tests - [ ] End to end tests ### Release Notes - Docs: Added an example for inline behaviour. |
||
---|---|---|
.. | ||
docs | ||
dotcom | ||
dotcom-asset-upload | ||
dotcom-bookmark-extractor | ||
dotcom-worker | ||
examples | ||
health-worker | ||
huppy | ||
vscode |