Vue Bootstrap Edge Header

Vue Edge Header - Bootstrap 4 & Material Design

Note: This documentation is for an older version of Bootstrap (v.4). A newer version is available for Bootstrap 5. We recommend migrating to the latest version of our product - Material Design for Bootstrap 5.
Go to docs v.5

Vue Bootstrap edge header is a full-width block located on the top of a page as a part of a background for a card. It is a component unique for Material Design, that can be often spotted in Google products and pages.

It gives additional depth and meaning to the project by making it seem like the card floats above its background.

It's easy to see this effect in the following Bootstrap edge header example:


Basic example

Material Design Edge Headers

Example of Material Design Form

Basic Textbox
Textbox with icon
E-mail validation
Textarea
Disabled field

Never submit your passwords here

        
            
        <template>
          <section style="background: #ededed; padding-bottom: 100px">
            <!-- Purple Header -->
            <mdb-edge-header color="indigo"/>
        
            <!-- Card Container -->
            <mdb-container free-bird>
              <mdb-row>
                <mdb-col md="8" lg="7" class="mx-auto float-none white z-depth-1 py-2 px-2">
        
                  <mdb-card-body>
                    <h2 class="h2-responsive"><strong>Material Design Edge Headers</strong></h2>
                    <p class="pb-4">Example of Material Design Form</p>
        
                    <!--Body-->
                    <form>
                      <h5 class="h5-responsive">Basic Textbox</h5>
                      <!-- Basic textbox -->
                      <mdb-input label="Example label"/>
                      <!-- /.Basic textbox -->
        
                      <h5 class="h5-responsive">Textbox with icon</h5>
                      <mdb-input label="Your name" icon="user" />
        
                      <!--Email validation-->
                      <h5 class="h5-responsive">E-mail validation</h5>
                      <mdb-input type="email" label="Your email" icon="envelope" />
        
                      <!--Textarea with icon-->
                      <h5 class="h5-responsive">Textarea</h5>
                      <mdb-input type="textarea" label="Textarea" icon="pencil-alt"></mdb-input>
        
                      <h5 class="h5-responsive">Disabled field</h5>
                      <mdb-input label="Example label" disabled/>
        
                      <div class="text-xs-left">
                        <mdb-btn color="primary" @click.native.prevent="handleSubmit()">Submit</mdb-btn>
                      </div>
                    </form>
        
                    <p class="my-2"><small>Never submit your passwords here</small></p>
                  </mdb-card-body>
                </mdb-col>
              </mdb-row>
            </mdb-container>
            <!-- /.Card Container -->
          </section>
        </template>
      
        
    
        
            
        <script>
          import { mdbEdgeHeader, mdbContainer, mdbRow, mdbCol, mdbCardBody, mdbInput, mdbBtn } from 'mdbvue';
          export default {
            name: 'EdgeHeaderPage',
            components: {
              mdbEdgeHeader,
              mdbContainer,
              mdbRow,
              mdbCol,
              mdbCardBody,
              mdbInput,
              mdbBtn
            },
            methods: {
              handleSubmit(e) {
                console.log('Form submitted');
              }
            }
          }
        </script>
     
        
    
        
            
        <style scoped>
          small {
            font-weight: 300;
          }
        </style>