-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(UiKit): Tab Navigation Block (#1095)
- Loading branch information
1 parent
4fa6667
commit 00d08d1
Showing
4 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { Block } from '../Block'; | ||
import type { LayoutBlockish } from '../LayoutBlockish'; | ||
import type { TextObject } from '../TextObject'; | ||
|
||
export type TabItem = { | ||
title: TextObject; | ||
disabled?: boolean; | ||
selected?: boolean; | ||
elements: readonly Block[]; | ||
}; | ||
|
||
export type TabNavigationBlock = LayoutBlockish<{ | ||
type: 'tab_navigation'; | ||
tabs: readonly TabItem[]; | ||
}>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters