Rate these docs

Angular Bootstrap Contact section

Angular contact sections - Bootstrap & Material Design

Contact section provides you a necessary information for your users to get in touch with you.


Contact v.1 MDB Pro component

Contact us

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fugit, error amet numquam iure provident voluptate esse quasi, veritatis totam voluptas nostrum quisquam eum porro a pariatur veniam.

Write to us:

We'll write rarely, but only the best content.


New York, 94126

United States

+ 01 234 567 89

Mon - Fri, 8:00-22:00

info@gmail.com

sale@gmail.com



        <!--Section: Contact v.1-->
        <section class="pb-5">

          <!--Section heading-->
          <h2 class="h1 pt-4">Contact us</h2>
          <!--Section description-->
          <p class="pb-4">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fugit, error amet numquam iure
            provident
            voluptate esse quasi,
            veritatis totam voluptas nostrum quisquam eum porro a pariatur accusamus veniam.</p>

          <div class="row">

            <!--Grid column-->
            <div class="col-lg-5 my-4">

              <!--Form with header-->
              <mdb-card>

                <mdb-card-body>
                  <!--Header-->
                  <div class="form-header blue accent-1">
                    <h3>
                      <i class="fas fa-envelope"></i> Write to us:</h3>
                  </div>

                  <p>We'll write rarely, but only the best content.</p>
                  <br>

                  <!--Body-->
                  <div class="md-form">
                    <i class="fas fa-user prefix grey-text"></i>
                    <input mdbInput type="text" id="form3" class="form-control">
                    <label for="form3">Your name</label>
                  </div>

                  <div class="md-form">
                    <i class="fas fa-envelope prefix grey-text"></i>
                    <input mdbInput type="text" id="form2" class="form-control">
                    <label for="form2">Your email</label>
                  </div>

                  <div class="md-form">
                    <i class="fas fa-tag prefix grey-text"></i>
                    <input mdbInput type="text" id="form32" class="form-control">
                    <label for="form34">Subject</label>
                  </div>

                  <div class="md-form">
                    <i class="fas fa-pencil-alt prefix grey-text"></i>
                    <textarea mdbInput type="text" id="form8" class="md-textarea"></textarea>
                    <label for="form8">Icon Prefix</label>
                  </div>

                  <div class="text-center">
                    <button mdbBtn color="light-blue" class="waves-light" mdbWavesEffect>Submit</button>
                  </div>

                </mdb-card-body>

              </mdb-card>
              <!--Form with header-->

            </div>
            <!--Grid column-->

            <!--Grid column-->
            <div class="col-lg-7">

              <!--Google map-->
              <agm-map class="z-depth-1-half map-container" style="height: 400px;" [latitude]="map.lat" [longitude]="map.lng">
                <agm-marker [latitude]="map.lat" [longitude]="map.lng"></agm-marker>
              </agm-map>

              <br>
              <!--Buttons-->
              <div class="row text-center">
                <div class="col-md-4">
                  <a mdbBtn floating="true" color="blue" class="accent-1 waves-light" mdbWavesEffect>
                    <i class="fas fa-map-marked"></i>
                  </a>
                  <p>San Francisco, CA 94126</p>
                  <p>United States</p>
                </div>

                <div class="col-md-4">
                  <a mdbBtn floating="true" color="blue" class="accent-1 waves-light" mdbWavesEffect>
                    <i class="fas fa-phone"></i>
                  </a>
                  <p>+ 01 234 567 89</p>
                  <p>Mon - Fri, 8:00-22:00</p>
                </div>

                <div class="col-md-4">
                  <a mdbBtn floating="true" color="blue" class="accent-1 waves-light" mdbWavesEffect>
                    <i class="fas fa-envelope"></i>
                  </a>
                  <p>info@gmail.com</p>
                  <p>sale@gmail.com</p>
                </div>
              </div>

            </div>
            <!--Grid column-->

          </div>

        </section>
        <!--Section: Contact v.1-->


      

        import { Component } from '@angular/core';

        @Component({
          selector: 'contact-component',
          templateUrl: './contact.component.html',
          styleUrls: ['./contact.component.scss'],
        })
        export class ContactComponent {
          map = {
            lat: 51.678418,
            lng: 7.809007,
          };
        }
      

Contact v.2 MDB Pro component

Contact us

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fugit, error amet numquam iure provident voluptate esse quasi, veritatis totam voluptas nostrum quisquam eum porro a pariatur veniam.

  • San Francisco, CA 94126, USA

  • + 01 234 567 89

  • contact@example.com



        <!-- Section: Contact v.2 -->
        <section class="my-5">

          <!-- Section heading -->
          <h2 class="h1-responsive font-weight-bold text-center my-5">Contact us</h2>
          <!-- Section description -->
          <p class="text-center w-responsive mx-auto mb-5">Lorem ipsum dolor sit amet, consectetur adipisicing elit.
            Fugit, error amet numquam iure provident voluptate esse quasi, veritatis totam voluptas nostrum quisquam
            eum porro a pariatur veniam.</p>

          <!-- Grid row -->
          <div class="row">

            <!-- Grid column -->
            <div class="col-md-9 mb-md-0 mb-5">

              <form>

                <!-- Grid row -->
                <div class="row">

                  <!-- Grid column -->
                  <div class="col-md-6">
                    <div class="md-form mb-0">
                      <input type="text" id="contact-name" class="form-control" mdbInput>
                      <label for="contact-name" class="">Your name</label>
                    </div>
                  </div>
                  <!-- Grid column -->

                  <!-- Grid column -->
                  <div class="col-md-6">
                    <div class="md-form mb-0">
                      <input type="text" id="contact-email" class="form-control" mdbInput>
                      <label for="contact-email" class="">Your email</label>
                    </div>
                  </div>
                  <!-- Grid column -->

                </div>
                <!-- Grid row -->

                <!-- Grid row -->
                <div class="row">

                  <!-- Grid column -->
                  <div class="col-md-12">
                    <div class="md-form mb-0">
                      <input type="text" id="contact-Subject" class="form-control" mdbInput>
                      <label for="contact-Subject" class="">Subject</label>
                    </div>
                  </div>
                  <!-- Grid column -->

                </div>
                <!-- Grid row -->

                <!-- Grid row -->
                <div class="row">

                  <!-- Grid column -->
                  <div class="col-md-12">
                    <div class="md-form">
                      <textarea type="text" id="contact-message" class="form-control md-textarea" rows="3"
                        mdbInput></textarea>
                      <label for="contact-message">Your message</label>
                    </div>
                  </div>
                  <!-- Grid column -->

                </div>
                <!-- Grid row -->

              </form>

              <div class="text-center text-md-left">
                <a mdbBtn color="primary" mdbWavesEffect>Send</a>
              </div>

            </div>
            <!-- Grid column -->

            <!-- Grid column -->
            <div class="col-md-3 text-center">
              <ul class="list-unstyled mb-0">
                <li>
                  <i class="fas fa-map-marked fa-2x blue-text"></i>
                  <p>San Francisco, CA 94126, USA</p>
                </li>
                <li>
                  <i class="fas fa-phone fa-2x mt-4 blue-text"></i>
                  <p>+ 01 234 567 89</p>
                </li>
                <li>
                  <i class="fas fa-envelope fa-2x mt-4 blue-text"></i>
                  <p class="mb-0">contact@example.com</p>
                </li>
              </ul>
            </div>
            <!-- Grid column -->

          </div>
          <!-- Grid row -->

        </section>
        <!-- Section: Contact v.2 -->


      

Contact v.3 MDB Pro component

Write to us:

Contact information

  • New York, 94126, USA

  • + 01 234 567 89

  • contact@example.com




        <!-- Section: Contact v.3 -->
        <section class="contact-section my-5">

          <!-- Form with header -->
          <div class="card">

            <!-- Grid row -->
            <div class="row">

              <!-- Grid column -->
              <div class="col-lg-8">

                <div class="card-body form">

                  <!-- Header -->
                  <h3 class="mt-4"><i class="fas fa-envelope pr-2"></i>Write to us:</h3>

                  <!-- Grid row -->
                  <div class="row">

                    <!-- Grid column -->
                    <div class="col-md-6">
                      <div class="md-form mb-0">
                        <input type="text" id="form-contact-name" class="form-control" mdbInput>
                        <label for="form-contact-name" class="">Your name</label>
                      </div>
                    </div>
                    <!-- Grid column -->

                    <!-- Grid column -->
                    <div class="col-md-6">
                      <div class="md-form mb-0">
                        <input type="text" id="form-contact-email" class="form-control" mdbInput>
                        <label for="form-contact-email" class="">Your email</label>
                      </div>
                    </div>
                    <!-- Grid column -->

                  </div>
                  <!-- Grid row -->

                  <!-- Grid row -->
                  <div class="row">

                    <!-- Grid column -->
                    <div class="col-md-6">
                      <div class="md-form mb-0">
                        <input type="text" id="form-contact-phone" class="form-control" mdbInput>
                        <label for="form-contact-phone" class="">Your phone</label>
                      </div>
                    </div>
                    <!-- Grid column -->

                    <!-- Grid column -->
                    <div class="col-md-6">
                      <div class="md-form mb-0">
                        <input type="text" id="form-contact-company" class="form-control" mdbInput>
                        <label for="form-contact-company" class="">Your company</label>
                      </div>
                    </div>
                    <!-- Grid column -->

                  </div>
                  <!-- Grid row -->

                  <!-- Grid row -->
                  <div class="row">

                    <!-- Grid column -->
                    <div class="col-md-12">
                      <div class="md-form mb-0">
                        <textarea type="text" id="form-contact-message" class="form-control md-textarea" rows="3"
                          mdbInput></textarea>
                        <label for="form-contact-message">Your message</label>
                        <a mdbBtn floating="true" size="lg" color="blue" mdbWavesEffect>
                          <i class="far fa-paper-plane"></i>
                        </a>
                      </div>
                    </div>
                    <!-- Grid column -->

                  </div>
                  <!-- Grid row -->

                </div>

              </div>
              <!-- Grid column -->

              <!-- Grid column -->
              <div class="col-lg-4">

                <div class="card-body contact text-center h-100 white-text">

                  <h3 class="my-4 pb-2">Contact information</h3>
                  <ul class="text-lg-left list-unstyled ml-4">
                    <li>
                      <p><i class="fas fa-map-marked pr-2"></i>New York, 94126, USA</p>
                    </li>
                    <li>
                      <p><i class="fas fa-phone pr-2"></i>+ 01 234 567 89</p>
                    </li>
                    <li>
                      <p><i class="fas fa-envelope pr-2"></i>contact@example.com</p>
                    </li>
                  </ul>
                  <hr class="hr-light my-4">
                  <ul class="list-inline text-center list-unstyled">
                    <li class="list-inline-item">
                      <a class="p-2 fa-lg tw-ic">
                        <i class="fab fa-twitter"></i>
                      </a>
                    </li>
                    <li class="list-inline-item">
                      <a class="p-2 fa-lg li-ic">
                        <i class="fab fa-linkedin-in"> </i>
                      </a>
                    </li>
                    <li class="list-inline-item">
                      <a class="p-2 fa-lg ins-ic">
                        <i class="fab fa-instagram"> </i>
                      </a>
                    </li>
                  </ul>

                </div>

              </div>
              <!-- Grid column -->

            </div>
            <!-- Grid row -->

          </div>
          <!-- Form with header -->

        </section>
        <!-- Section: Contact v.3 -->


      

Install MDB CLI
It's the fastest way to create and host MDB projects
Free Download

Angular Contact - API

In this section you will find informations about required modules and available inputs, outputs, methods and events of Angular contact sections.


Modules used

In order to speed up your application, you can choose to import only the modules you actually need, instead of importing the entire MDB Angular library. Remember that importing the entire library, and immediately afterwards a specific module, is bad practice, and can cause application errors.

// MDB Angular Pro
import { CardsFreeModule, InputsModule, WavesModule, ButtonsModule } from 'ng-uikit-pro-standard'