--- layout: layouts/page.njk title: Input description: Displays a form input field or a component that looks like an input field. toc: - label: Usage id: usage - label: Examples id: examples children: - label: Default id: example-default - label: Invalid id: example-invalid - label: Disabled id: example-disabled - label: With label id: example-with-label - label: With text id: example-with-text - label: With button id: example-with-button - label: Form id: example-form --- {% from "macros/code_preview.njk" import code_preview %} {% from "macros/code_block.njk" import code_block %} {% set code %}{% endset %} {{ code_preview("input", code) }}
Simply add the input class to your <input> element or have a parent with the form class (read more about form). You can also set the aria-invalid attribute to true to make the input invalid.
Fill in your email address.