Creating a Component
Any artboard can be converted to a component. To do so, select an artboard on the stage and use the component icon in the inspector to toggle its status. Alternatively, you can use theShift + N shortcut with an artboard selected. If you’re coming from Figma, then the Cmd/Ctrl + Alt/Option + K, shortcut will also work.
Select the component toggle in the inspector again to revert your selection back to a regular artboard, or use the Shift + Alt/Option + N shortcut.
Currently, only artboards that have been flagged as components will be exported to your .riv file. If you think you may want to programmatically access an artboard at runtime, you should mark it as a component. More options on specific export behaviors are coming soon.
Using Components
Use the Component Tool — formerly known as the Nested Artboard Tool — to select and place instances of a component on the stage. Select the tool from the toolbar or use theN shortcut to enable it.
Click anywhere on the stage to place the component in the desired location. A menu will display available components to instance. If none show up, you may have no artboards marked as components in your file.
Alternatively, select the dropdown menu to the right of the toolbar icon to select the component ahead of time. The menu is informed by the sort mode of the assets tab — the ‘Custom’ mode will present components as they’re organized in the asset panel, while the ‘Source/Type’ mode will present components from their source. The latter will become useful with our Libraries feature.