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

Create Heading component #13

Closed
zenorocha opened this issue Sep 21, 2022 · 1 comment · Fixed by #89
Closed

Create Heading component #13

zenorocha opened this issue Sep 21, 2022 · 1 comment · Fixed by #89
Assignees
Milestone

Comments

@zenorocha
Copy link
Collaborator

zenorocha commented Sep 21, 2022

Not much you need to do here, mostly a wrapper around <h1>, <h2>, etc.

Eg:

import { Html } from '@react-email/html';
import { Heading } from '@react-email/heading';

const Email = () => {
  return (
    <Html lang="en">
      <Heading size="1">Lorem</Heading>
      <Heading size="2">Ipsum</Heading>
      <Heading size="3">Dolor</Heading>
      <Heading size="4">Sit</Heading>
      <Heading size="5">Amet</Heading>
      <Heading size="6">Consectetur</Heading>
    </Html>
  );
};
@zenorocha
Copy link
Collaborator Author

Another idea is to have a more native HTML experience and create something like <H1>, <H2>, etc.

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 a pull request may close this issue.

2 participants