Snap Components
Snap components enable adding custom UI components defined by snap-kit to the DevRev UI. These components can be used to display data or interact with the user. Snap components are defined in the snap-in manifest file. DevRev UI renders these components based on the defined configuration.
Each snap-component has the following properties:
surface
: The surface where the snap component can be displayed.snap_kit_action_name
: The name of the action within the snap kit that is triggered when the snap component’s defined action is engaged.snap_kit_body
: The initial body content of the snap kit action that is rendered upon loading the snap component.initializer
: Refers to a function that can be invoked to set up the snap component. This is particularly useful when the component needs to be initialized with server data, depending on the context in which it is being deployed.