Vue Bootstrap Edge Header
Vue Edge Header - Bootstrap 4 & Material Design
Note: We are transitioning MDB4 to a legacy version and focusing on developing MDB5.
While we'll continue to support for the transition period, we encourage you to migrate to
MDB5. We're offering a 50% discount on MDB5 PRO to help with your transition,
enabling you to leverage the full potential of the latest version. You can find more information here.
get 50% discount on MDB5 PRO
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
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>