Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right way to use Tabbar #78

Open
MadMandrake opened this issue Nov 1, 2024 · 0 comments
Open

Right way to use Tabbar #78

MadMandrake opened this issue Nov 1, 2024 · 0 comments

Comments

@MadMandrake
Copy link

MadMandrake commented Nov 1, 2024

Can you make example with whole layout with tabs?
I try to use it like this, but it cover <Outlet/>. And i can't scroll to see full page.

return <div>
    <div>
      <Outlet/>
    </div>
    <Tabbar >
        {tabs.map(({
          id,
          text,
          Icon,
          to
        }) => <RouterLink to={to} key={id}>
                  <Tabbar.Item key={id} text={text} selected={id === currentTab} onClick={() => setCurrentTab(id)}>
                      <Icon />
                  </Tabbar.Item>
              </RouterLink>
        
        )}
      </Tabbar>
  </div>;
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

No branches or pull requests

1 participant