Sets the function to create toggle elements
The function whose returned element will be used when the component is created
Generated using TypeDoc
Sets the function to create toggle elements