YUI recommends YUI 3.
YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.
This demonstrates how to dynamically add tabs to a TabView widget.
Tab One Content
Tab Two Content
Tab Three Content