baseweb icon indicating copy to clipboard operation
baseweb copied to clipboard

Tab element is not able to wrapped into function component

Open enes-get-local opened this issue 5 years ago • 7 comments

Overrides doesn't applied when wrap the Tab component into function that return another component

like:

const CustomTab => <Tab {...props} overrides={ // ...some overrides} >children</Tab>

example here " Demo

I should use it into another function in order to keep reusable and avoid repeats.

Your Environment

Tech Version
Base UI ^9.105.0
React 16.13.1
browser Chrome
  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

enes-get-local avatar Jan 18 '21 17:01 enes-get-local

Hey, I am having the same exact problem, is there any chance this will be fixed soon?

asherccohen avatar Jun 10 '21 11:06 asherccohen

I am facing this issue as well. Is there any update on when it will be addressed?

alexandreabeh avatar Sep 14 '21 17:09 alexandreabeh

+1 it seems like this is preventing any styling of individual Tab components when using tabs motion - any chance this is on someones radar? Or have a workaround for how to style individual tabs? The docs are not super clear on how this is supposed to be done https://baseweb.design/components/tabs-motion#tab-overrides

mgrip avatar Sep 16 '21 20:09 mgrip

+1

KelleyMentorCollective avatar Sep 16 '21 20:09 KelleyMentorCollective

@asherccohen , same here. That's the only workaround I have for now.

alexandreabeh avatar Sep 16 '21 21:09 alexandreabeh

+1

ecarrera avatar Sep 22 '21 16:09 ecarrera