Skip to content

Commit 4f1d03a

Browse files
committed
docs: test hide component
1 parent edbb39a commit 4f1d03a

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
<center>
22

3+
<Hide>
4+
35
<h1 style="display:none;">react-netlify-forms</h1>
46

7+
</Hide>
8+
59
> React components and hooks giving you the power of Netlify Forms. Start building serverless forms on Netlify with React. Honeypot fields and reCAPTCHA are included as ready-to-use components.
610
711
[![NPM](https://flat.badgen.net/npm/v/react-netlify-forms)](https://www.npmjs.com/package/react-netlify-forms)
812
[![minzipped package size](https://flat.badgen.net/bundlephobia/minzip/react-netlify-forms)](https://www.npmjs.com/package/react-netlify-forms)
913
[![JavaScript Style Guide](https://flat.badgen.net/badge/code%20style/standard/f2a)](https://standardjs.com)
1014
[![License](https://flat.badgen.net/github/license/Pyrax/react-netlify-forms)](https://github.com/Pyrax/react-netlify-forms/blob/master/LICENSE.md)
1115

12-
<div style="display:none;" aria-hidden>
16+
<Hide>
17+
18+
<div>
1319

1420
[Go to documentation with live demo.](https://pyrax.github.io/react-netlify-forms)
1521

1622
</div>
1723

24+
</Hide>
25+
1826
</center>
1927

2028
## Features

www/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
<center>
22

3+
<Hide>
4+
35
<h1 style="display:none;">react-netlify-forms</h1>
46

7+
</Hide>
8+
59
> React components and hooks giving you the power of Netlify Forms. Start building serverless forms on Netlify with React. Honeypot fields and reCAPTCHA are included as ready-to-use components.
610
711
[![NPM](https://flat.badgen.net/npm/v/react-netlify-forms)](https://www.npmjs.com/package/react-netlify-forms)
812
[![minzipped package size](https://flat.badgen.net/bundlephobia/minzip/react-netlify-forms)](https://www.npmjs.com/package/react-netlify-forms)
913
[![JavaScript Style Guide](https://flat.badgen.net/badge/code%20style/standard/f2a)](https://standardjs.com)
1014
[![License](https://flat.badgen.net/github/license/Pyrax/react-netlify-forms)](https://github.com/Pyrax/react-netlify-forms/blob/master/LICENSE.md)
1115

12-
<div style="display:none;" aria-hidden>
16+
<Hide>
17+
18+
<div>
1319

1420
[Go to documentation with live demo.](https://pyrax.github.io/react-netlify-forms)
1521

1622
</div>
1723

24+
</Hide>
25+
1826
</center>
1927

2028
## Features

www/src/gatsby-plugin-theme-ui/components.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ const components = {
5858
h4: heading('h4'),
5959
h5: heading('h5'),
6060
h6: heading('h6'),
61-
Alert
61+
Alert,
62+
Hide: (props) => (
63+
<div style={{ display: 'none' }} aria-hidden>{children}</div>
64+
)
6265
}
6366

6467
export default components

0 commit comments

Comments
 (0)