pub fn tabs<Msg, I, S>(labels: I) -> TabBar<Msg>where Msg: Clone + 'static, I: IntoIterator<Item = S>, S: Into<String>,
Create a TabBar from any iterable of label-likes.
TabBar
tabs( [ "Inbox", "Sent", "Drafts" ] ) .selected( self.tab ) .on_select( Msg::SelectTab )