Field

Displays different type of form fields.

Text

Input field - E-mail

Input field - Date Picker

Input field - Number

Input field - Password

Hey! Want some help with this?

Input field - Search (with icon)

Input field - Text

Input field - Validated: invalid

Input field - Validated: valid

Input field - Hidden label

Input field - Custom validation (email)

Input field - Custom validation (email) & Shadow active

<!-- form.blade.php -->
<form class="c-form js-form-validation" autocomplete="on" id="673ed279cd989" data-uid="673ed279cd990" method="POST" action="#">

                <!-- notice.blade.php -->
<div class="c-notice c-form__notice-failed u-margin__bottom--4 c-notice--danger" aria-hidden="true" id="673ed279cd989-validation-error" data-uid="673ed279cda05" aria-labelledby="notice__text__673ed279cd989-validation-error">
    
    <!-- notice__ico -->
            <span class="c-notice__icon">
                <!-- icon.blade.php -->
    <span class="c-icon c-icon--report c-icon--material c-icon--material-report material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" material-symbol="report" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" aria-hidden="false" data-uid="673ed279cda42">
                    </span>
        </span>
        
    <!-- notice__title -->
    
    <!-- notice__text -->
    <span id="notice__text__673ed279cd989-validation-error" for="" class="c-notice__message">
                    In some mysterious way, you failed to fill in the form correctly. Please try again.
                
    </span>

</div>    
                <!-- notice.blade.php -->
<div class="c-notice c-form__notice-success u-margin__bottom--4 c-notice--success" aria-hidden="true" id="673ed279cd989-validation-sucess" data-uid="673ed279cda83" aria-labelledby="notice__text__673ed279cd989-validation-sucess">
    
    <!-- notice__ico -->
            <span class="c-notice__icon">
                <!-- icon.blade.php -->
    <span class="c-icon c-icon--check c-icon--material c-icon--material-check material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" material-symbol="check" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" aria-hidden="false" data-uid="673ed279cdab5">
                    </span>
        </span>
        
    <!-- notice__title -->
    
    <!-- notice__text -->
    <span id="notice__text__673ed279cd989-validation-sucess" for="" class="c-notice__message">
                    Yay! we've done it! Form is submitted!
                
    </span>

</div>    
    <div class="grid">
        <div class="grid-md-6">
                <h2>Input field - E-mail</h2>
                <!-- field.blade.php -->
<div class="c-field c-field--email c-field--md c-field--radius-md" id="673ed279ccc00" data-uid="673ed279ccc27">
    
            <label class="c-field__label " for="input_673ed279ccc00" id="label_673ed279ccc00">
            Add your email
                            <span class="u-color__text--danger" aria-hidden="true">*</span>
                    </label>
            
    <div class="c-field__inner c-field__inner--email">
        
        
        
        
                    
            
            <input id="input_673ed279ccc00" value="" onkeydown="return event.keyCode !== 107" data-validation-message="Please enter a valid email" aria-labelledby="label_673ed279ccc00" placeholder="email@email.com" type="email" name="email" required="required" data-js-required="" data-required="1" aria-required="true" autocomplete="email">
            <div class="c-field_focus-styler u-level-top"></div> 

                    
        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__error-icon c-icon--error-outline c-icon--material c-icon--material-error_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="error_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279ccd3c">
                    </span>

        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__success-icon c-icon--check-circle-outline c-icon--material c-icon--material-check_circle_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="check_circle_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279ccd99">
                    </span>

    </div>

        <div class="c-field__error" aria-hidden="true" aria-label="{{VALIDATION_ERROR_MESSAGE}}">
            <!-- typography.blade.php   original: span -->
<span class="c-typography c-field__error-message c-typography__variant--meta" data-uid="673ed279ccdf6">
    {{VALIDATION_ERROR_MESSAGE}}
</span>    </div>
    
    </div>
        </div>

        <div class="grid-md-6">
                <h2>Input field - Date Picker</h2>
                <!-- field.blade.php -->
<div class="c-field c-field--date c-field--md c-field--radius-md" id="673ed279cce57" data-uid="673ed279cce8e">
    
            <label class="c-field__label " for="input_673ed279cce57" id="label_673ed279cce57">
            Enter a date
                            <span class="u-color__text--danger" aria-hidden="true">*</span>
                    </label>
            
    <div class="c-field__inner c-field__inner--date">
        
        
        
        
                    
            
            <input id="input_673ed279cce57" value="" data-validation-message="You need to add a valid date!" aria-labelledby="label_673ed279cce57" min="1997-06-29" max="2024-11-22" type="date" name="text" required="required" data-js-required="" data-required="1" aria-required="true" autocomplete="on">
            <div class="c-field_focus-styler u-level-top"></div> 

                    
        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__error-icon c-icon--error-outline c-icon--material c-icon--material-error_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="error_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279ccecd">
                    </span>

        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__success-icon c-icon--check-circle-outline c-icon--material c-icon--material-check_circle_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="check_circle_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279ccf0c">
                    </span>

    </div>

        <div class="c-field__error" aria-hidden="true" aria-label="{{VALIDATION_ERROR_MESSAGE}}">
            <!-- typography.blade.php   original: span -->
<span class="c-typography c-field__error-message c-typography__variant--meta" data-uid="673ed279ccf42">
    {{VALIDATION_ERROR_MESSAGE}}
</span>    </div>
    
    </div>
        </div>

        <div class="grid-md-6">
                <h2>Input field - Number</h2>
                <!-- field.blade.php -->
<div class="c-field c-field--number c-field--md c-field--radius-md" id="673ed279ccf91" data-uid="673ed279ccfa2">
    
            <label class="c-field__label " for="input_673ed279ccf91" id="label_673ed279ccf91">
            Number
                            <span class="u-color__text--danger" aria-hidden="true">*</span>
                    </label>
            
    <div class="c-field__inner c-field__inner--number">
        
        
        
        
                    
            
            <input id="input_673ed279ccf91" value="" onkeydown="return event.keyCode !== 69" data-validation-message="Must be a number." aria-labelledby="label_673ed279ccf91" type="number" name="number" required="required" data-js-required="" data-required="1" aria-required="true" autocomplete="on">
            <div class="c-field_focus-styler u-level-top"></div> 

                    
        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__error-icon c-icon--error-outline c-icon--material c-icon--material-error_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="error_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279ccfda">
                    </span>

        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__success-icon c-icon--check-circle-outline c-icon--material c-icon--material-check_circle_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="check_circle_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd015">
                    </span>

    </div>

        <div class="c-field__error" aria-hidden="true" aria-label="{{VALIDATION_ERROR_MESSAGE}}">
            <!-- typography.blade.php   original: span -->
<span class="c-typography c-field__error-message c-typography__variant--meta" data-uid="673ed279cd049">
    {{VALIDATION_ERROR_MESSAGE}}
</span>    </div>
    
    </div>
        </div>

        <div class="grid-md-6">
                <h2>Input field - Password</h2>
                <!-- field.blade.php -->
<div class="c-field c-field--password c-field--md c-field--radius-md" id="673ed279cd0a2" data-uid="673ed279cd0b4">
    
            <label class="c-field__label " for="input_673ed279cd0a2" id="label_673ed279cd0a2">
            Set your password
                            <span class="u-color__text--danger" aria-hidden="true">*</span>
                    </label>
            
    <div class="c-field__inner c-field__inner--password">
        
        
        
        
                    
            
            <input id="input_673ed279cd0a2" value="" data-validation-message="You need to fill in this field." aria-labelledby="label_673ed279cd0a2" placeholder="correct horse battery staple" type="password" name="password" required="required" data-js-required="" data-required="1" aria-required="true" autocomplete="new-password">
            <div class="c-field_focus-styler u-level-top"></div> 

                    
        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__error-icon c-icon--error-outline c-icon--material c-icon--material-error_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="error_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd105">
                    </span>

        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__success-icon c-icon--check-circle-outline c-icon--material c-icon--material-check_circle_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="check_circle_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd146">
                    </span>

    </div>

        <div class="c-field__error" aria-hidden="true" aria-label="{{VALIDATION_ERROR_MESSAGE}}">
            <!-- typography.blade.php   original: span -->
<span class="c-typography c-field__error-message c-typography__variant--meta" data-uid="673ed279cd180">
    {{VALIDATION_ERROR_MESSAGE}}
</span>    </div>
    
            <small class="c-field__helper">
            Hey! Want some help with this?
        </small>
    </div>
        </div>

        <div class="grid-md-6">
                <h2>Input field - Search (with icon)</h2>
                <!-- field.blade.php -->
<div class="c-field c-field--search c-field--icon c-field--md c-field--radius-md" id="673ed279cd1d5" data-uid="673ed279cd1e9">
    
            <label class="c-field__label " for="input_673ed279cd1d5" id="label_673ed279cd1d5">
            Search
                            <span class="u-color__text--danger" aria-hidden="true">*</span>
                    </label>
            
    <div class="c-field__inner c-field__inner--search">
        
        
        
        
                                        <!-- icon.blade.php -->
    <span class="c-icon c-field__icon c-icon--search c-icon--material c-icon--material-search material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" material-symbol="search" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" aria-hidden="false" data-uid="673ed279cd226">
                    </span>
            
            
            <input id="input_673ed279cd1d5" value="" aria-labelledby="label_673ed279cd1d5" type="search" name="search" required="required" data-js-required="" data-required="1" aria-required="true" autocomplete="on">
            <div class="c-field_focus-styler u-level-top"></div> 

                    
        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__error-icon c-icon--error-outline c-icon--material c-icon--material-error_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="error_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd269">
                    </span>

        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__success-icon c-icon--check-circle-outline c-icon--material c-icon--material-check_circle_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="check_circle_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd2a7">
                    </span>

    </div>

    
    </div>
        </div>

        <div class="grid-md-6">
                <h2>Input field - Text</h2>
                <!-- field.blade.php -->
<div class="c-field c-field--text c-field--md c-field--radius-md" id="673ed279cd2ff" data-uid="673ed279cd30f">
    
            <label class="c-field__label " for="input_673ed279cd2ff" id="label_673ed279cd2ff">
            Normal text field
                    </label>
            
    <div class="c-field__inner c-field__inner--text">
        
        
        
        
                    
            
            <input id="input_673ed279cd2ff" value="" aria-labelledby="label_673ed279cd2ff" type="text" name="text" autocomplete="on">
            <div class="c-field_focus-styler u-level-top"></div> 

                    
        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__error-icon c-icon--error-outline c-icon--material c-icon--material-error_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="error_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd34b">
                    </span>

        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__success-icon c-icon--check-circle-outline c-icon--material c-icon--material-check_circle_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="check_circle_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd389">
                    </span>

    </div>

    
    </div>
        </div>

        <div class="grid-md-6">
                <h2>Input field - Validated: invalid</h2>
                <!-- field.blade.php -->
<div class="c-field is-invalid c-field--email c-field--md c-field--radius-md" id="673ed279cd3e9" data-uid="673ed279cd3fd">
    
            <label class="c-field__label " for="input_673ed279cd3e9" id="label_673ed279cd3e9">
            Add your e-mail
                            <span class="u-color__text--danger" aria-hidden="true">*</span>
                    </label>
            
    <div class="c-field__inner c-field__inner--email">
        
        
        
        
                    
            
            <input id="input_673ed279cd3e9" value="" onkeydown="return event.keyCode !== 107" data-validation-message="Please enter a valid email" aria-labelledby="label_673ed279cd3e9" placeholder="email@email.com" type="email" name="email" required="required" data-js-required="" data-required="1" aria-required="true" autocomplete="email">
            <div class="c-field_focus-styler u-level-top"></div> 

                    
        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__error-icon c-icon--error-outline c-icon--material c-icon--material-error_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="error_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd43a">
                    </span>

        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__success-icon c-icon--check-circle-outline c-icon--material c-icon--material-check_circle_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="check_circle_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd484">
                    </span>

    </div>

        <div class="c-field__error" aria-hidden="true" aria-label="{{VALIDATION_ERROR_MESSAGE}}">
            <!-- typography.blade.php   original: span -->
<span class="c-typography c-field__error-message c-typography__variant--meta" data-uid="673ed279cd4bf">
    {{VALIDATION_ERROR_MESSAGE}}
</span>    </div>
    
    </div>
        </div>

        <div class="grid-md-6">
                <h2>Input field - Validated: valid</h2>
                <!-- field.blade.php -->
<div class="c-field is-valid c-field--email c-field--md c-field--radius-md" id="673ed279cd517" data-uid="673ed279cd52b">
    
            <label class="c-field__label " for="input_673ed279cd517" id="label_673ed279cd517">
            Add your email
                            <span class="u-color__text--danger" aria-hidden="true">*</span>
                    </label>
            
    <div class="c-field__inner c-field__inner--email">
        
        
        
        
                    
            
            <input id="input_673ed279cd517" value="" onkeydown="return event.keyCode !== 107" data-validation-message="Please enter a valid email" aria-labelledby="label_673ed279cd517" placeholder="email@email.com" type="email" name="email" required="required" data-js-required="" data-required="1" aria-required="true" autocomplete="email">
            <div class="c-field_focus-styler u-level-top"></div> 

                    
        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__error-icon c-icon--error-outline c-icon--material c-icon--material-error_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="error_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd567">
                    </span>

        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__success-icon c-icon--check-circle-outline c-icon--material c-icon--material-check_circle_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="check_circle_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd5b2">
                    </span>

    </div>

        <div class="c-field__error" aria-hidden="true" aria-label="{{VALIDATION_ERROR_MESSAGE}}">
            <!-- typography.blade.php   original: span -->
<span class="c-typography c-field__error-message c-typography__variant--meta" data-uid="673ed279cd5e7">
    {{VALIDATION_ERROR_MESSAGE}}
</span>    </div>
    
    </div>
        </div>

        <div class="grid-md-6">
                <h2>Input field - Hidden label</h2>
                <!-- field.blade.php -->
<div class="c-field c-field--email c-field--md c-field--radius-md" id="673ed279cd638" data-uid="673ed279cd64a">
    
            <label class="c-field__label u-sr__only" for="input_673ed279cd638" id="label_673ed279cd638">
            Add your email
                            <span class="u-color__text--danger" aria-hidden="true">*</span>
                    </label>
            
    <div class="c-field__inner c-field__inner--email">
        
        
        
        
                    
            
            <input id="input_673ed279cd638" value="" onkeydown="return event.keyCode !== 107" data-validation-message="Please enter a valid email" aria-label="Add your email" placeholder="email@email.com" type="email" name="email" required="required" data-js-required="" data-required="1" aria-required="true" autocomplete="email">
            <div class="c-field_focus-styler u-level-top"></div> 

                    
        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__error-icon c-icon--error-outline c-icon--material c-icon--material-error_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="error_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd682">
                    </span>

        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__success-icon c-icon--check-circle-outline c-icon--material c-icon--material-check_circle_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="check_circle_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd6bd">
                    </span>

    </div>

        <div class="c-field__error" aria-hidden="true" aria-label="{{VALIDATION_ERROR_MESSAGE}}">
            <!-- typography.blade.php   original: span -->
<span class="c-typography c-field__error-message c-typography__variant--meta" data-uid="673ed279cd6f2">
    {{VALIDATION_ERROR_MESSAGE}}
</span>    </div>
    
    </div>
        </div>

        <div class="grid-md-6">
                <h2>Input field - Custom validation (email)</h2>
                <!-- field.blade.php -->
<div class="c-field c-field--text c-field--md c-field--radius-md" id="673ed279cd73f" data-uid="673ed279cd751">
    
            <label class="c-field__label u-sr__only" for="input_673ed279cd73f" id="label_673ed279cd73f">
            Add your email
                            <span class="u-color__text--danger" aria-hidden="true">*</span>
                    </label>
            
    <div class="c-field__inner c-field__inner--text">
        
        
        
        
                    
            
            <input id="input_673ed279cd73f" value="" data-validation-regexp="^[^@]+@[^@]+\.[^@]+$" data-validation-message="Please enter a valid email" aria-label="Add your email" placeholder="email@email.com" type="text" name="email_regexp" required="required" data-js-required="" data-required="1" aria-required="true" autocomplete="email">
            <div class="c-field_focus-styler u-level-top"></div> 

                    
        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__error-icon c-icon--error-outline c-icon--material c-icon--material-error_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="error_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd789">
                    </span>

        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__success-icon c-icon--check-circle-outline c-icon--material c-icon--material-check_circle_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="check_circle_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd7c3">
                    </span>

    </div>

        <div class="c-field__error" aria-hidden="true" aria-label="{{VALIDATION_ERROR_MESSAGE}}">
            <!-- typography.blade.php   original: span -->
<span class="c-typography c-field__error-message c-typography__variant--meta" data-uid="673ed279cd7f9">
    {{VALIDATION_ERROR_MESSAGE}}
</span>    </div>
    
    </div>
        </div>


        <div class="grid-md-6">
                <h2>Input field - Custom validation (email) & Shadow active</h2>
                <!-- field.blade.php -->
<div class="c-field c-field--text c-field--md c-field--shadow c-field--radius-md" id="673ed279cd84d" data-uid="673ed279cd867">
    
            <label class="c-field__label u-sr__only" for="input_673ed279cd84d" id="label_673ed279cd84d">
            Add your email
                            <span class="u-color__text--danger" aria-hidden="true">*</span>
                    </label>
            
    <div class="c-field__inner c-field__inner--text">
        
        
        
        
                    
            
            <input id="input_673ed279cd84d" value="" data-validation-regexp="^[^@]+@[^@]+\.[^@]+$" data-validation-message="Please enter a valid email" aria-label="Add your email" placeholder="email@email.com" type="text" name="email_regexp" required="required" data-js-required="" data-required="1" aria-required="true" autocomplete="email">
            <div class="c-field_focus-styler u-level-top"></div> 

                    
        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__error-icon c-icon--error-outline c-icon--material c-icon--material-error_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="error_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd8b7">
                    </span>

        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__success-icon c-icon--check-circle-outline c-icon--material c-icon--material-check_circle_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="check_circle_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cd8f7">
                    </span>

    </div>

        <div class="c-field__error" aria-hidden="true" aria-label="{{VALIDATION_ERROR_MESSAGE}}">
            <!-- typography.blade.php   original: span -->
<span class="c-typography c-field__error-message c-typography__variant--meta" data-uid="673ed279cd930">
    {{VALIDATION_ERROR_MESSAGE}}
</span>    </div>
    
    </div>
        </div>

        <div class="grid-md-12">
            <input type="submit">
        </div>
    </div>
</form>
@form([
    'errorMessage' => 'In some mysterious way, you failed to fill in the form correctly. Please try again.',
    'validateMessage' => "Yay! we've done it! Form is submitted!",
    'attributeList' => [
        'autocomplete' => 'on'
    ]
])
    <div class="grid">
        <div class="grid-md-6">
            @markdown
                ##Input field - E-mail
            @endmarkdown

            @field([
                'type' => 'email',
                'placeholder' => 'email@email.com',
                'name' => 'email',
                'autocomplete' => 'email',
                'invalidMessage' => 'Please enter a valid email',
                'label' => "Add your email",
                'required' => true,
            ])
            @endfield
        </div>

        <div class="grid-md-6">
            @markdown
            ##Input field - Date Picker
            @endmarkdown

            @field([
                'type' => 'date',
                'name' => 'text',
                'value' => '',
                'label' => 'Enter a date',
                'required' => true,
                'invalidMessage' => 'You need to add a valid date!',
                'datepicker' => [
                    'minDate'               => "6/29/1997",
                    'maxDate'               => "tomorrow",
                ]
            ])
            @endfield
        </div>

        <div class="grid-md-6">
            @markdown
            ##Input field - Number
            @endmarkdown

            @field([
                'type' => 'number',
                'name' => 'number',
                'required' => true,
                'label' => "Number",
                'invalidMessage' => 'Must be a number.',
            ])
            @endfield
        </div>

        <div class="grid-md-6">
            @markdown
            ##Input field - Password
            @endmarkdown

            @field([
                'type' => 'password',
                'name' => 'password',
                'placeholder' => 'correct horse battery staple',
                'required' => true,
                'autocomplete' => "new-password",
                'invalidMessage' => 'You need to fill in this field.',
                'label' => "Set your password",
                'helperText' => "Hey! Want some help with this?"
            ])
            @endfield
        </div>

        <div class="grid-md-6">
            @markdown
            ##Input field - Search (with icon)
            @endmarkdown

            @field([
                'type' => 'search',
                'name' => 'search',
                'required' => true,
                'label' => "Search",
                'icon' => ['icon' => 'search']
            ])
            @endfield
        </div>

        <div class="grid-md-6">
            @markdown
            ##Input field - Text
            @endmarkdown

            @field([
                'type' => 'text',
                'name' => 'text',
                'label' => "Normal text field"
            ])
            @endfield
        </div>

        <div class="grid-md-6">
            @markdown
                ##Input field - Validated: invalid
            @endmarkdown

            @field([
                'type' => 'email',
                'placeholder' => 'email@email.com',
                'name' => 'email',
                'autocomplete' => 'email',
                'invalidMessage' => 'Please enter a valid email',
                'label' => "Add your e-mail",
                'required' => true,
                'classList' => [
                    'is-invalid'
                ]
            ])
            @endfield
        </div>

        <div class="grid-md-6">
            @markdown
                ##Input field - Validated: valid
            @endmarkdown

            @field([
                'type' => 'email',
                'placeholder' => 'email@email.com',
                'name' => 'email',
                'autocomplete' => 'email',
                'invalidMessage' => 'Please enter a valid email',
                'label' => "Add your email",
                'required' => true,
                'classList' => [
                    'is-valid'
                ]
            ])
            @endfield
        </div>

        <div class="grid-md-6">
            @markdown
                ##Input field - Hidden label
            @endmarkdown

            @field([
                'type' => 'email',
                'placeholder' => 'email@email.com',
                'name' => 'email',
                'autocomplete' => 'email',
                'invalidMessage' => 'Please enter a valid email',
                'label' => "Add your email",
                'required' => true,
                'hideLabel' => true,
            ])
            @endfield
        </div>

        <div class="grid-md-6">
            @markdown
                ##Input field - Custom validation (email)
            @endmarkdown

            @field([
                'type' => 'text',
                'placeholder' => 'email@email.com',
                'name' => 'email_regexp',
                'autocomplete' => 'email',
                'validationRegexp' => '^[^@]+@[^@]+\.[^@]+$',
                'invalidMessage' => 'Please enter a valid email',
                'label' => "Add your email",
                'required' => true,
                'hideLabel' => true,
            ])
            @endfield
        </div>


        <div class="grid-md-6">
            @markdown
                ##Input field - Custom validation (email) & Shadow active
            @endmarkdown

            @field([
                'type' => 'text',
                'placeholder' => 'email@email.com',
                'name' => 'email_regexp',
                'autocomplete' => 'email',
                'validationRegexp' => '^[^@]+@[^@]+\.[^@]+$',
                'invalidMessage' => 'Please enter a valid email',
                'label' => "Add your email",
                'required' => true,
                'hideLabel' => true,
                'shadow' => true
            ])
            @endfield
        </div>

        <div class="grid-md-12">
            <input type="submit">
        </div>
    </div>
@endform

Range

<!-- field.blade.php -->
<div class="c-field c-field--range c-field--md c-field--radius-md" id="673ed279cdb3a" data-uid="673ed279cdb4a">
    
            
    <div class="c-field__inner c-field__inner--range">
        
        
        
        
                    
            
            <input id="input_673ed279cdb3a" value="" aria-label="" type="range" name="rangeSlider" autocomplete="on">
            <div class="c-field_focus-styler u-level-top"></div> 

                    
        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__error-icon c-icon--error-outline c-icon--material c-icon--material-error_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="error_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cdb84">
                    </span>

        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__success-icon c-icon--check-circle-outline c-icon--material c-icon--material-check_circle_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="check_circle_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cdbc1">
                    </span>

    </div>

    
    </div>
@field(
    [
        'type' => 'range',
        'name' => 'rangeSlider',
    ])
@endfield

Color

<!-- field.blade.php -->
<div class="c-field c-field--color c-field--md c-field--radius-md" id="673ed279cdc2a" data-uid="673ed279cdc39">
    
            
    <div class="c-field__inner c-field__inner--color">
        
        
        
        
                    
            
            <input id="input_673ed279cdc2a" value="" aria-label="" type="color" name="colorPicker" autocomplete="on">
            <div class="c-field_focus-styler u-level-top"></div> 

                    
        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__error-icon c-icon--error-outline c-icon--material c-icon--material-error_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="error_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cdc7a">
                    </span>

        
            <!-- icon.blade.php -->
    <span class="c-icon c-field__suffix c-field__success-icon c-icon--check-circle-outline c-icon--material c-icon--material-check_circle_outline material-symbols material-symbols-rounded material-symbols-sharp material-symbols-outlined  c-icon--size-md" aria-hidden="false" material-symbol="check_circle_outline" role="img" data-nosnippet="" translate="no" aria-label="Icon: Undefined" alt="Icon: Undefined" data-uid="673ed279cdcb5">
                    </span>

    </div>

    
    </div>
@field(
    [
        'type' => 'color',
        'name' => 'colorPicker',
    ])
@endfield

Blade component parameters

Key Default value Type Available values Description
label string - Label for the field.
name string - The name of the field (html name='')
type text string - text, checkbox and radio
validationRegexp false boolean - Regular expression for validation. Will apply on non empty strings or all strings when required.
invalidMessage false boolean - Message to display when the field is invalid.
required false boolean - Require this field to be filled in.
autocomplete on string - Browser automatically completes the input values based on values that the user has entered before. Reference: https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
value string - Field value
icon string - Adds a icon before the input field (string)
size md string - -
radius md string - If any special type of rounded corners should be used (none, xs, sm, md, lg)
placeholder string - Example value for field
hideLabel false boolean - This will remove the visible label. Label will be auditible for screen readers.
helperText string - Text displayed below the field.
multiline false boolean - Render textarea instead of input. Boolean or number of rows to render.
borderless false boolean - Removes the border around the input field
shadow false boolean - If the current theme applies shadows to element, append shadow here too.
fieldAttributeList [] array - Attributes for field element. Valid input attributes are casted to here from attributesList.
description string - -
id string - The DOM id of the component.
classList [] array - Array containing wrapping classes array
attributeList [] array - Array containing keys and values rendered as attributes
containerAware false boolean true/false Makes the component container aware. Appends modifiers --size--xs/sm/md/lg to the component.
Settings location: /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/Field/field.json