Skip to content

Conversation

thanhcuong1990
Copy link

IndicatorComponent

To custom MaterialTabBar indicator we can use IndicatorComponent as a prop of MaterialTabBar.

  const CustomTabbar = useCallback(
    (props) => {
      return (
        <MaterialTabBar
          {...props}
          TabItemComponent={CustomTabItem}
          IndicatorComponent={CustomTabIndicator}
        />
      )
    },
    []
  )

  return (
    <Tabs.Container
      renderTabBar={CustomTabbar}
    >
    ...
    </Tabs.Container>
  )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant