For more information on designing and animating Text, please refer to the editor’s text section:Documentation Index
Fetch the complete documentation index at: https://uat.rive.app/docs/llms.txt
Use this file to discover all available pages before exploring further.
Text
Information on designing and animating Text
Read/Update Text Runs at Runtime
If you intend to update a text run at runtime it’s important to manually enter a unique name for the run in the editor:

Text runs can also be updated on components at runtime, see Read/Update
Nested Text Runs at Runtime below.
Examples
Reading Text
To read a given text run text value at any given time, reference the.getTextRunValue() API on the rive instance returned from useRive:
undefined if the text run could not be queried.
Setting Text
To set a given text run value at any given time, reference the.setTextRunValue() API on the rive instance returned from useRive:
textValue, with a String value that you want to set the new text value for if the text run can be successfully queried on the active artboard.
Example Usage
Read/Update Nested Text Runs at Runtime
It’s possible to set nested text runs at runtime—text that is not on the main artboard but on a Component. To set a nested text run, you’ll need to take note of the path where the input exists at an artboard level. For example, to get/set the text run named button_text on the Button artboard, you need to provide the correct path.
- Main -> NestedArtboard -> Button

- ArtboardWithUniqueName -> ButtonWithUniqueName
ArtboardWithUniqueName/ButtonWithUniqueName
Examples
Reading Text
To read a given text run text value at any given time, reference the.getTextRunValue() API on the rive instance returned from useRive:
undefined if the text run could not be queried.
Setting Text
To set a given text run value at any given time, reference the.setTextRunValue() API on the rive instance returned from useRive:
textValue, with a String value that you want to set the new text value for if the text run can be successfully queried on the active artboard.
Example Usage
Semantics for Accessibility
As Rive Text does not make use of the underlying platform text APIs, additional steps need to be taken to ensure it can be read by screen readers. Please see the respective platform/SDKs developer documentation for additional information regarding accessibility concerns.Adding ARIA Label
At a minimum - if it is important to convey the text value displayed in the Rive animation to all users, add anaria-label to the <canvas> element with the text value from the animation. Screen readers may read this label out immediately as it parses out the DOM contents. You’ll also want to add role="img" to the <canvas> element as well.
Adding ARIA Live Region
While ARIA labels are a direct method to manage a textual label for screen readers to read out as it parses web content, using an ARIA live region allows you a way to control when screen readers read out dynamic text content. Live regions are useful in cases where the text content in your Rive graphic becomes visible or changes on a particular state in a state machine, and you want screen readers to pick up on text changes. Another use case is when you only want screen readers to read your Rive text content when the<canvas> is scrolled into view.
Read more on ARIA live regions here.
Export
component name