Each variant can be defined as a function that resolves when a variant is made active.
These functions are provided a single argument, which is passed via the custom prop
custom prop
Build by Ritesh. Check out my other Github Codes.