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

feat(heading): add Heading and Section components #1961

Merged
merged 1 commit into from
Apr 21, 2024

Conversation

metonym
Copy link
Collaborator

@metonym metonym commented Apr 21, 2024

v11 has a new Heading and Section component.

It automatically sets the heading level based on the nesting of sections.

<Section>
  <Heading>Heading 1</Heading>
  <Section>
    <Heading>Heading 2</Heading>
    <Section>
      <Heading>Heading 3</Heading>
      <Section>
        <Heading>Heading 4</Heading>
        <Section>
          <Heading>Heading 5</Heading>
          <Section>
            <Heading>Heading 6</Heading>
            <Section>
              <Heading>Capped at Heading 6</Heading>
            </Section>
          </Section>
        </Section>
      </Section>
    </Section>
  </Section>
  <Section>
    <Heading>Heading 2</Heading>
  </Section>
</Section>

@metonym metonym merged commit 76210d6 into next/v11-styles Apr 21, 2024
1 check passed
@metonym metonym deleted the next/v11-section-heading branch April 21, 2024 21:27
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

Successfully merging this pull request may close these issues.

1 participant