geist-org / geist-ui

A design system for building modern websites and applications.

Home Page:https://geist-ui.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

activeStyles of Tabs

nguyenph194812 opened this issue Β· comments

Bug report 🐞

Version & Environment

  • Version of browser
  • Version of geist-ui/core: latest

Expected Behaviour

The behavior I expect is that the active items have the style i set in activeStyles attribute

Actual results (or Errors)

I got an error:

image

<Tabs
              initialValue="1"
              onChange={(val) => setValue(val)}
              value={value}
              activeStyles={{ color: "black" }}
            >
              {categories.map((category, index) => {
                return (
                  <TabsItem label={category} value={index.toString()} key={index} />
                )
              }
              )}
            </Tabs>