resend / react-email

💌 Build and send emails using React
https://react.email
MIT License
12.57k stars 571 forks source link

<Heading /> not rendered inside <Tailwind /> #1405

Closed Noventhree closed 1 month ago

Noventhree commented 1 month ago

Describe the Bug


const Example = () => (
  <Html>
    <Tailwind>
      <Body>
          <Heading >test heading</Heading>
          <Button>test button</Button>
      </Body>
    </Tailwind>
  </Html>
);

export default Example;

doesn't render heading


const Example = () => (
  <Html>
      <Body>
          <Heading >test heading</Heading>
          <Button>test button</Button>
      </Body>
  </Html>
);

export default Example;

does render heading. spotted after latest version bump

Which package is affected (leave empty if unsure)

@react-email/tailwind

Link to the code that reproduces this issue

in description

To Reproduce

copy paste code in description

Expected Behavior

heading can be rendered inside tailwind

What's your node version? (if relevant)

No response

gabrielmfern commented 1 month ago

Closing as a duplicate of #1391.

It should be working under @react-email/tailwind 0.0.16-canary.1.