Skip to content

[HELP] Styling/accessing children of components through prop passed to the parent component #368

Answered by kennethnym
petertodorov asked this question in Help
Discussion options

You must be logged in to vote

There's currently no direct way to style the underlying <ul> component. You can use CSS selectors to select it from the parent element:

.my-tab > ul {
  /* your style here */
}

then pass the class name to the Tabs component:

<Tabs
  className="my-tab" />

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kennethnym
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
2 participants
Converted from issue

This discussion was converted from issue #366 on August 26, 2021 15:07.