Skip to content

Commit 6a3a03f

Browse files
committed
Add reusable markdown section
1 parent 5c56703 commit 6a3a03f

File tree

8 files changed

+26
-42
lines changed

8 files changed

+26
-42
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
:::note
2+
This component is compatible with the standard `<form>`
3+
element. For more information on form submission and client-side validation,
4+
please refer to the [Working with forms](/guides/working-with-forms)
5+
section.
6+
:::

src/content/docs/components/button.mdx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,15 @@ title: Button
44

55
import Demo from "@components/Demo.astro";
66
import PageSwitcher from "@components/PageSwitcher.astro";
7+
import FormControlInfo from "@components/form-control-info.md";
78

89
import Imports from "@components/examples/button/Imports.astro";
910
import BasicExample from '@components/examples/button/BasicExample.astro';
1011
import CustomizedStyles from '@components/examples/button/CustomizedStyles.astro';
1112

1213
<Imports />
1314
<PageSwitcher />
14-
15-
:::note
16-
This component is compatible with the standard `<form>`
17-
element. For more information on form submission and client-side validation,
18-
please refer to the [Working with forms](/guides/working-with-forms)
19-
section.
20-
:::
15+
<FormControlInfo />
2116

2217
## Basic example
2318

src/content/docs/components/checkbox.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,15 @@
22
title: Checkbox
33
---
44

5+
import FormControlInfo from "@components/form-control-info.md";
6+
57
import Demo from "@components/Demo.astro";
68
import PageSwitcher from "@components/PageSwitcher.astro";
79
import Imports from "@components/examples/checkbox/Imports.astro";
810

911
<Imports />
1012
<PageSwitcher />
11-
12-
:::note
13-
This component is compatible with the standard `<form>`
14-
element. For more information on form submission and client-side validation,
15-
please refer to the [Working with forms](/guides/working-with-forms)
16-
section.
17-
:::
13+
<FormControlInfo />
1814

1915
## Basic example
2016

src/content/docs/components/multi-select.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: Multi Select
33
---
44

5+
import FormControlInfo from "@components/form-control-info.md";
6+
57
import Demo from "@components/Demo.astro";
68
import PageSwitcher from "@components/PageSwitcher.astro";
79
import Imports from "@components/examples/multi-select/Imports.astro";
@@ -11,13 +13,7 @@ import ComboboxExample from "@components/examples/multi-select/ComboboxExample.a
1113

1214
<Imports />
1315
<PageSwitcher />
14-
15-
:::note
16-
This component is compatible with the standard `<form>`
17-
element. For more information on form submission and client-side validation,
18-
please refer to the [Working with forms](/guides/working-with-forms)
19-
section.
20-
:::
16+
<FormControlInfo />
2117

2218
## Basic example
2319

src/content/docs/components/radio.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: Radio
33
---
44

5+
import FormControlInfo from "@components/form-control-info.md";
6+
57
import Demo from "@components/Demo.astro";
68
import PageSwitcher from "@components/PageSwitcher.astro";
79
import Imports from "@components/examples/radio/Imports.astro";
@@ -11,13 +13,7 @@ import VerticalExample from "@components/examples/radio/VerticalExample.astro";
1113

1214
<Imports />
1315
<PageSwitcher />
14-
15-
:::note
16-
This component is compatible with the standard `<form>`
17-
element. For more information on form submission and client-side validation,
18-
please refer to the [Working with forms](/guides/working-with-forms)
19-
section.
20-
:::
16+
<FormControlInfo />
2117

2218
The Radio component is intended to select a single option from a set of options.
2319
It is designed to be used together with the [Radio Group](/components/radio-group) component.

src/content/docs/components/single-select.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: Single Select
33
---
44

5+
import FormControlInfo from "@components/form-control-info.md";
6+
57
import Demo from "@components/Demo.astro";
68
import PageSwitcher from "@components/PageSwitcher.astro";
79
import Imports from "@components/examples/single-select/Imports.astro";
@@ -11,13 +13,7 @@ import ComboboxExample from "@components/examples/single-select/ComboboxExample.
1113

1214
<Imports />
1315
<PageSwitcher />
14-
15-
:::note
16-
This component is compatible with the standard `<form>`
17-
element. For more information on form submission and client-side validation,
18-
please refer to the [Working with forms](/guides/working-with-forms)
19-
section.
20-
:::
16+
<FormControlInfo />
2117

2218
## Basic example
2319

src/content/docs/components/textarea.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Textarea
33
---
4+
import FormControlInfo from "@components/form-control-info.md";
5+
46
import Demo from "@components/Demo.astro";
57
import PageSwitcher from "@components/PageSwitcher.astro";
68
import Imports from "@components/examples/textarea/Imports.astro";
@@ -10,6 +12,7 @@ import MonospaceModeExample from "@components/examples/textarea/MonospaceModeExa
1012

1113
<Imports />
1214
<PageSwitcher />
15+
<FormControlInfo />
1316

1417
:::note
1518
This component is compatible with the standard `<form>`

src/content/docs/components/textfield.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: Textfield
33
---
44

5+
import FormControlInfo from "@components/form-control-info.md";
6+
57
import Demo from "@components/Demo.astro";
68
import PageSwitcher from "@components/PageSwitcher.astro";
79
import Imports from "@components/examples/textfield/Imports.astro";
@@ -12,13 +14,7 @@ import FileInputExample from "@components/examples/textfield/FileInputExample.as
1214

1315
<Imports />
1416
<PageSwitcher />
15-
16-
:::note
17-
This component is compatible with the standard `<form>`
18-
element. For more information on form submission and client-side validation,
19-
please refer to the [Working with forms](/guides/working-with-forms)
20-
section.
21-
:::
17+
<FormControlInfo />
2218

2319
## Basic example
2420

0 commit comments

Comments
 (0)