public function addTabPanels( array $tabPanels ) {
		$tabItems = [];
		foreach ( $tabPanels as $i => $tabPanel ) {
			$this->tabPanels[ $tabPanel->getName() ] = $tabPanel;
			$labelElement = new Tag( 'span' );
			$tabItem = new TabOptionWidget( [
				'labelElement' => $labelElement,
				'label' => $tabPanel->getLabel(),
				'data' => $tabPanel->getName(),
				// Select the first item
				// TODO: Support selecting an arbitrary item
				'selected' => $this->tabSelectWidget->isEmpty() && $i === 0
			] );
			$tabItems[] = $tabItem;
		}
		$this->tabSelectWidget->addItems( $tabItems );
		$this->stackLayout->addItems( $tabPanels );
	}