Skip to content

docs(editor): global view models - #840

Open
lancesnider wants to merge 2 commits into
mainfrom
global-view-models
Open

docs(editor): global view models#840
lancesnider wants to merge 2 commits into
mainfrom
global-view-models

Conversation

@lancesnider

Copy link
Copy Markdown
Collaborator

No description provided.

@lancesnider
lancesnider requested a review from a team as a code owner August 6, 2026 02:49
@mintlify

mintlify Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
rive 🟢 Ready View Preview Aug 6, 2026, 2:51 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@lancesnider
lancesnider requested review from jeffatrive and a lite review from Copilot and removed request for a team August 6, 2026 02:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Editor data-binding documentation to introduce and explain Global View Models/Instances, and to clarify how to bind to global properties in the binding UI.

Changes:

  • Expands “Connecting View Model Instances to Artboards” to include Global View Model Instances as a first-class pattern.
  • Updates the “Create a View Model” flow to mention global vs non-global creation paths.
  • Adds a note to the binding docs describing how to select Globals when binding global properties.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 4 comments.

File Description
editor/data-binding/view-models.mdx Documents global view model instances and refreshes the patterns/steps copy accordingly.
editor/data-binding/binding-data.mdx Adds guidance and a visual for binding global properties via the Globals selector.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

### Instances Attached to Artboards

Attach a View Model Instance directly to the top-level artboard when the data should be available to the entire artboard and its children.
View model instances can be attached to a specific artboard or nested component. This is useful when only that artboard and its children needs access to that data.
</UseCase>

### Nested Component Instances
### Instances as nested properties
<Steps>
<Step title="Add a View Model">
In the Data panel Click the `+` icon and select **View Model**.
In the Data panel Click the `+` icon and select **Normal View Model** or [Global View Model](#global-view-model-instances).

<Note>
When binding global properties, select the **Globals** icon.
![Preview data binding](/images/editor/data-binding/binding-data/global-properties.gif)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants