diff --git a/src/content/classnotes/css/form/index.mdx b/src/content/classnotes/css/form/index.mdx index 796bde1..f8b5904 100644 --- a/src/content/classnotes/css/form/index.mdx +++ b/src/content/classnotes/css/form/index.mdx @@ -5,6 +5,7 @@ title: Formulários import CodePreview from '../../../../components/CodePreview.astro'; import HtmlPreview from '../../../../components/HtmlPreview.astro'; import CodeHtmlCssPreview from '../../../../components/CodeHtmlCssPreview.astro'; +import CodeHtmlPreview from '../../../../components/CodeHtmlPreview.astro'; # {frontmatter.title} @@ -12,187 +13,249 @@ import CodeHtmlCssPreview from '../../../../components/CodeHtmlCssPreview.astro' ### single-line text field +
+ -```html title="html" +```html ``` +
+ required: +
+
{'*'}
-```html title="html" +```html * ``` +
+ placeholder: +
+ -```html title="html" +```html ``` +
+ value: +
+ -```html title="html" +```html ``` +
+ [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/text) ### label field +
- + +
+ [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label) ### password field +
+ -```html title="html" +```html ``` +
+ [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/password) ### radio button field +
- + +
+
- + +
[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio) ### checkbox field +
- + +
+ +
- + +
[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox) ### button field +
+ -```html title="html" +```html ``` +
+ [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/button) ### file field +
+ -```html title="html" +```html ``` +
+ [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file) ### [range field](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range) +
+ document.querySelector('input[name=number-value]').value = event.target.value} /> -```html title="html" +```html ``` +
+ ### number field +
+
-```html title="html" +```html ``` +
+ [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number) ### date field +
+
-```html title="html" +```html ``` +
+ [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date) ### email field +
+
-```html title="html" +```html ``` +
+ [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email) ### multi-line text field +
+
-```html title="html" +```html
``` +
+ [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea) ### combobox field +
- + +
[MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select) @@ -201,10 +264,14 @@ digite uma mensagem + ### Formulário com Boostrap - +
+ + + + - +