Utilities
Utilities provide simple helper methods and properties for advanced prototyping needs.
#useIsInCurrentNavigationTarget
#useIsInCurrentNavigationTarget(): boolean
Used to know if a code component is a child of the current screen. This can be useful for resetting timers or interactions that need to trigger on every navigation.
#AutomaticLayoutIds
Enable or disable the automatic generation of layout ids for canvas layers.
By default layout ids are generated for all layers created on the Framer canvas. However, layout ids are not generated for any layer that is a descendant of a code component. Sometimes you will want to enable layout id generation for descendants of your code components when they use children, slots, or import design components, and you want those layers to animate with magic motion transitions.
<AutomaticLayoutIds enabled> <YourComponent/></AutomaticLayoutIds>