From 81957df5bd22795c25e24aa1294c90fd520133bb Mon Sep 17 00:00:00 2001 From: Ihor Barmak Date: Wed, 4 Apr 2018 01:13:55 +0300 Subject: [PATCH] Added support for custom Head Tags --- README.md | 11 +++++++++++ src/components/Email.jsx | 3 +++ 2 files changed, 14 insertions(+) diff --git a/README.md b/README.md index 995f1f9..72a625f 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,17 @@ An image, without any pesky borders, outlines, or underlines by default. Require ## Head CSS and Media Queries You can pass a string prop `headCSS` to your `` component. You can see it in our [kitchenSink.jsx](https://github.com/chromakode/react-html-email/blob/master/examples/kitchenSink.jsx) example. +## Head Tags +You can pass a react node prop `headTags` to your `` component if you want to append more tags to the head element. (for example, if you want to add a custom font-family): + +``` +} +> +``` + ## Mailchimp attributes If you're using Mailchimp and need to add their custom `mc:edit` attributes to your markup, we recommend using the [mailchimpify](http://github.com/Roilan/mailchimpify) module. diff --git a/src/components/Email.jsx b/src/components/Email.jsx index 8c51e9b..0726a05 100644 --- a/src/components/Email.jsx +++ b/src/components/Email.jsx @@ -13,6 +13,7 @@ export default function Email(props) { {props.title} + {props.headTags} {props.headCSS && }