New to KendoReactLearn about KendoReact Free.

TabStripProps

Represents the props of the KendoReact TabStrip component.

NameTypeDefaultDescription

animation?

boolean

Enables the tab animation.

jsx
<TabStrip animation={true} />

buttonScrollSpeed?

number

100

Sets the tab list scroll speed in pixels when scrolling via clicking the previous or next button.

children?

React.ReactNode

Determines the children nodes.

className?

string

Specifies the CSS class names of the TabStrip component.

jsx
<TabStrip className="custom-class" />

dir?

string

Sets the direction of the TabStrip component.

jsx
<TabStrip dir="rtl" />

id?

string

Sets the id property of the top div element of the component.

keepTabsMounted?

boolean

Defines if the tabs will remain mounted after another tab is selected. Defaults to false.

jsx
<TabStrip keepTabsMounted={true} />

mouseScrollSpeed?

number

10

Deprecated. The mouse scroll is implemented via CSS and the property is no longer needed.

nextButton?

React.ComponentType<ButtonProps>

Defines the custom component that will be rendered as a next button. To remove the button, set a function which returns null () => null.

onSelect?

(e: TabStripSelectEventArguments) => void

Fires each time the user makes a selection.

jsx
<TabStrip onSelect={(e) => console.log(e.selected)} />

prevButton?

React.ComponentType<ButtonProps>

Defines the custom component that will be rendered as a previous button. To remove the button, set a function which returns null () => null.

renderAllContent?

boolean

false Defines if all component tabs will be rendered by default. Defaults to false . If set to false , the component will render only the currently selected tab. This can be useful when the content of the tabs is heavy and you want to improve the initial loading time. Check also the keepTabsMounted prop.

jsx
<TabStrip renderAllContent={true} />

scrollable?

boolean

false

Determines whether the TabStrip will be scrollable.

scrollButtons?

ScrollButtons

auto

Sets the visibility of the scroll buttons.

scrollButtonsPosition?

ScrollButtonsPosition

split

Sets the scroll buttons position according to the tab list. The previous options 'around', 'before', 'after' are going to be deprecated in favor of 'split', 'start', 'end'.

selected?

number

Sets the index of the selected TabStripTab component (see example).

jsx
<TabStrip selected={0} />

size?

TabStripSize

Specifies the possible sizes of the TabStrip.

jsx
<TabStrip size="small" />

tabAlignment?

string

Sets the alignment of the tabs. Defaults to start.

The available options are:

  • "start"—Aligns the tabs at the start of the TabStripNavigation.
  • "center"—Aligns the tabs in the center of the TabStripNavigation.
  • "end"—Aligns the tabs at the end of the TabStripNavigation.
  • "justify"—Justifies the tabs inside the TabStripNavigation.
  • "stretched"—Stretches the tabs inside the TabStripNavigation.
jsx
<TabStrip tabAlignment="center" />

tabContentStyle?

any

Sets the style of the TabStripContent component.

jsx
<TabStrip tabContentStyle={{ padding: '10px' }} />

tabIndex?

number

Sets the tabIndex of the TabStripNavigation.

jsx
<TabStrip tabIndex={0} />

tabPosition?

string

Sets the position of the tabs. Defaults to top.

The available options are:

  • "top"—Renders the TabStripNavigation to the top of the TabStrip.
  • "bottom"—Renders the TabStripNavigation to the bottom of the TabStrip.
  • "left"—Renders the TabStripNavigation to the left of the TabStrip.
  • "right"—Renders the TabStripNavigation to the right of the TabStrip.
jsx
<TabStrip tabPosition="bottom" />
Not finding the help you need?
Contact Support