Skip to content

Complete the "Child Elements" section #11

@chris-pearce

Description

@chris-pearce

Some components are comprised of multiple elements but for some components, you'll only have access to one className prop. For example, the FieldSet component's HTML structure looks like this:

<fieldset>
  <legend><!-- legend text --></legend>
  <!-- children -->
</fieldset>

But only <Fieldset> is available. Therefore, to be able to reach in and style the child element(s), in this case, the <legend> element, you have a few options: [?]

Inspiration

Metadata

Metadata

Assignees

Labels

documentationEverything related to documentation.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions