cast className to String to support SVG elements