Deprecated: Return type of Illuminate\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/webroot/ROOT/vendor/illuminate/support/Collection.php on line 2060

Deprecated: Return type of Illuminate\Support\Collection::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/webroot/ROOT/vendor/illuminate/support/Collection.php on line 2071

Deprecated: Return type of Illuminate\Support\Collection::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/webroot/ROOT/vendor/illuminate/support/Collection.php on line 2083

Deprecated: Return type of Illuminate\Support\Collection::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/webroot/ROOT/vendor/illuminate/support/Collection.php on line 2098

Deprecated: Return type of Illuminate\Support\Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/webroot/ROOT/vendor/illuminate/support/Collection.php on line 2007

Deprecated: Return type of Illuminate\Support\Collection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/webroot/ROOT/vendor/illuminate/support/Collection.php on line 1986

Deprecated: Return type of Illuminate\Support\Collection::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/webroot/ROOT/vendor/illuminate/support/Collection.php on line 1955
Helsingborg Styleguide - Version 2.0

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="6869584a0bdbf" data-uid="6869584a0bdc6" 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="6869584a0bdbf-validation-error" data-uid="6869584a0be30" aria-labelledby="notice__text__6869584a0bdbf-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="6869584a0be6f">
                    </span>
        </span>
        
    <!-- notice__title -->
    
    <!-- notice__text -->
    <span id="notice__text__6869584a0bdbf-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="6869584a0bdbf-validation-sucess" data-uid="6869584a0beb2" aria-labelledby="notice__text__6869584a0bdbf-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="6869584a0bee6">
                    </span>
        </span>
        
    <!-- notice__title -->
    
    <!-- notice__text -->
    <span id="notice__text__6869584a0bdbf-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="6869584a0af81" data-uid="6869584a0afaa">
    
            <label class="c-field__label " for="input_6869584a0af81" id="label_6869584a0af81">
            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_6869584a0af81" value="" onkeydown="return event.keyCode !== 107" data-validation-message="Please enter a valid email" aria-labelledby="label_6869584a0af81" 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="6869584a0b109">
                    </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="6869584a0b168">
                    </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="6869584a0b1ea">
    {{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="6869584a0b253" data-uid="6869584a0b28e">
    
            <label class="c-field__label " for="input_6869584a0b253" id="label_6869584a0b253">
            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_6869584a0b253" value="" data-validation-message="You need to add a valid date!" aria-labelledby="label_6869584a0b253" min="1997-06-29" max="2025-07-06" 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="6869584a0b2d5">
                    </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="6869584a0b31c">
                    </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="6869584a0b361">
    {{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="6869584a0b3b9" data-uid="6869584a0b3ce">
    
            <label class="c-field__label " for="input_6869584a0b3b9" id="label_6869584a0b3b9">
            Number
                            <span class="u-color__text--danger" aria-hidden="true">*</span>
                    </label>
            
    <div class="c-field__inner c-field__inner--number">
        
        
        
        
                    
            
            <input id="input_6869584a0b3b9" value="" onkeydown="return event.keyCode !== 69" data-validation-message="Must be a number." aria-labelledby="label_6869584a0b3b9" 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="6869584a0b40d">
                    </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="6869584a0b44f">
                    </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="6869584a0b48a">
    {{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="6869584a0b4dd" data-uid="6869584a0b4f1">
    
            <label class="c-field__label " for="input_6869584a0b4dd" id="label_6869584a0b4dd">
            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_6869584a0b4dd" value="" data-validation-message="You need to fill in this field." aria-labelledby="label_6869584a0b4dd" 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="6869584a0b52f">
                    </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="6869584a0b570">
                    </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="6869584a0b5b8">
    {{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="6869584a0b60d" data-uid="6869584a0b622">
    
            <label class="c-field__label " for="input_6869584a0b60d" id="label_6869584a0b60d">
            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="6869584a0b65e">
                    </span>
            
            
            <input id="input_6869584a0b60d" value="" aria-labelledby="label_6869584a0b60d" 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="6869584a0b6a0">
                    </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="6869584a0b6de">
                    </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="6869584a0b734" data-uid="6869584a0b744">
    
            <label class="c-field__label " for="input_6869584a0b734" id="label_6869584a0b734">
            Normal text field
                    </label>
            
    <div class="c-field__inner c-field__inner--text">
        
        
        
        
                    
            
            <input id="input_6869584a0b734" value="" aria-labelledby="label_6869584a0b734" 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="6869584a0b77f">
                    </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="6869584a0b7bd">
                    </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="6869584a0b819" data-uid="6869584a0b82d">
    
            <label class="c-field__label " for="input_6869584a0b819" id="label_6869584a0b819">
            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_6869584a0b819" value="" onkeydown="return event.keyCode !== 107" data-validation-message="Please enter a valid email" aria-labelledby="label_6869584a0b819" 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="6869584a0b869">
                    </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="6869584a0b8a6">
                    </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="6869584a0b8de">
    {{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="6869584a0b932" data-uid="6869584a0b947">
    
            <label class="c-field__label " for="input_6869584a0b932" id="label_6869584a0b932">
            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_6869584a0b932" value="" onkeydown="return event.keyCode !== 107" data-validation-message="Please enter a valid email" aria-labelledby="label_6869584a0b932" 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="6869584a0b98e">
                    </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="6869584a0b9ce">
                    </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="6869584a0ba06">
    {{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="6869584a0ba59" data-uid="6869584a0ba6d">
    
            <label class="c-field__label u-sr__only" for="input_6869584a0ba59" id="label_6869584a0ba59">
            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_6869584a0ba59" 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="6869584a0baa9">
                    </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="6869584a0bae8">
                    </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="6869584a0bb20">
    {{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="6869584a0bb70" data-uid="6869584a0bb84">
    
            <label class="c-field__label u-sr__only" for="input_6869584a0bb70" id="label_6869584a0bb70">
            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_6869584a0bb70" 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="6869584a0bbbf">
                    </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="6869584a0bbfe">
                    </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="6869584a0bc36">
    {{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="6869584a0bc97" data-uid="6869584a0bcac">
    
            <label class="c-field__label u-sr__only" for="input_6869584a0bc97" id="label_6869584a0bc97">
            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_6869584a0bc97" 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="6869584a0bce8">
                    </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="6869584a0bd27">
                    </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="6869584a0bd68">
    {{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="6869584a0c26c" data-uid="6869584a0c283">
    
            
    <div class="c-field__inner c-field__inner--range">
        
        
        
        
                    
            
            <input id="input_6869584a0c26c" 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="6869584a0c2ce">
                    </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="6869584a0c317">
                    </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="6869584a0c5dc" data-uid="6869584a0c5f1">
    
            
    <div class="c-field__inner c-field__inner--color">
        
        
        
        
                    
            
            <input id="input_6869584a0c5dc" 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="6869584a0c639">
                    </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="6869584a0c682">
                    </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