Vue Bootstrap Streak

Vue Streak - Bootstrap 4 & Material Design

Vue Bootstrap streak is a horizontal block containing text, uses to separate content sections or highlight some piece of information.

They should be used with caution, since too many of them on a single page will make it hard to read.

Streaks may contain a quote or a background photow with effect similar to parallax.

Examples of Vue Bootstrap streak menu use:

  • Famous person quote
  • Landscape with a memorable quote

See the following Vue Bootstrap streak menu examples:


Basic example MDB Pro component

  • The people who are crazy enough to think they can change the world are the ones who do.

  • ~ Steve Jobs

        <mdb-streak :quote="quote" :by="by" />
      

          import { mdbStreak } from 'mdbvue';

          export default {
            name: 'StreakExample',
            components: {
              mdbStreak
            },
            data() {
              return {
                quote: 'The people who are crazy enough to think they can change the world are the ones who do.',
                by: 'Steve Jobs'
              };
            }
          }
        

Medium streak MDB Pro component

  • I photograph to see what the world looks like in photographs.

  • ~ Garry Winogrand

        <mdb-streak
          md
          :quote="quote"
          :by="by" byClass="grey-text font-weight-bold"
          quoteClass="font-weight-bold"
          wrapperClass="blue lighten-4"
        />
      

          import { mdbStreak } from 'mdbvue';

          export default {
            name: 'StreakExample',
            components: {
              mdbStreak
            },
            data() {
              return {
                quote: 'I photograph to see what the world looks like in photographs.',
                by: 'Garry Winogrand'
              };
            }
          }
        

Streak with photo MDB Pro component

  • The people who are crazy enough to think they can change the world are the ones who do.

  • ~ Steve Jobs

        <mdb-streak
          lg
          :quote="quote"
          :by="by"
          picture="https://mdbootstrap.com/img/Photos/Horizontal/Nature/12-col/img(115).jpg"
          overlayClass="white-text rgba-black-light pattern-1"
        />
      

          import { mdbStreak } from 'mdbvue';

          export default {
            name: 'StreakExample',
            components: {
              mdbStreak
            },
            data() {
              return {
                quote: 'The people who are crazy enough to think they can change the world are the ones who do.',
                by: 'Steve Jobs'
              };
            }
          }
        

Vue Streak - API

In this section you will find informations about required modules of streak component.


API Reference: Props

Name Type Default Description
quote String none Allows to pipe in a dynamic quote
by String none Entry point for inserting quote author dynamically
md Boolean false Used to set streak's height to medium
lg Boolean false Sets streak's height to large
marks Boolean true For turning off the built-in quotation marks
wrapperClass String grey lighten-3 CSS classes to be applied to streak's wrapper
overlayClass String grey lighten-3 CSS classes to be applied to streak's overlay, which is usually the only child of streak's wrapper
quoteClass String '' CSS classes to be applied to the quotation
byClass String '' CSS classes to be applied to the author name