Block Vue Component

Block Vue component represents Block / Content Block element designed (mostly) to add extra formatting and required spacing for text content.

Block Components

There are following components included:

  • f7-block - main block element
  • f7-block-title - block title. Can be used before Block or List View
  • f7-block-header - extra header element. Can be used both inside and outside of block elements
  • f7-block-footer - extra footer element. Can be used both inside and outside of block elements

Block Properties

PropTypeDefaultDescription
<f7-block> properties
insetbooleanMakes block inset
tablet-insetbooleanMakes block inset on tablets, but not on phones
strongbooleanAdds extra highlighting and padding block content
accordion-listbooleanMakes block wrapper for accordion items
tabsbooleanAdds additional "tabs" class to make the block tabs wrapper
tabbooleanAdds additional "tab" class when block should be used as a Tab
tab-activebooleanAdds additional "tab-active" class when block used as a Tab and makes it active tab
no-hairlinesbooleanRemoves outer hairlines
no-hairlines-mdbooleanRemoves outer hairlines for MD theme
no-hairlines-iosbooleanRemoves outer hairlines for iOS theme
<f7-block-title> properties
mediumbooleanMakes block title medium size
largebooleanMakes block title large size

Examples

<f7-page>
  <f7-navbar title="Content Block"></f7-navbar>
  <p>This paragraph is outside of content block. Not cool, but useful for any custom elements with custom styling.</p>

  <f7-block>
    <p>Here comes paragraph within content block. Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  </f7-block>

  <f7-block strong>
    <p>Here comes another text block with additional "block-strong" class. Praesent nec imperdiet diam. Maecenas vel lectus porttitor, consectetur magna nec, viverra sem. Aliquam sed risus dolor. Morbi tincidunt ut libero id sodales. Integer blandit varius nisi quis consectetur. </p>
  </f7-block>

  <f7-block-title>Block title</f7-block-title>
  <f7-block>
    <p>Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  </f7-block>

  <f7-block-title>Another ultra long content block title</f7-block-title>
  <f7-block strong>
    <p>Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  </f7-block>

  <f7-block-title>Inset</f7-block-title>
  <f7-block strong inset>
    <p>Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  </f7-block>

  <f7-block-title>Tablet Inset</f7-block-title>
  <f7-block strong tablet-inset>
    <p>Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  </f7-block>

  <f7-block-title>With Header & Footer</f7-block-title>
  <f7-block>
    <f7-block-header>Block Header</f7-block-header>
    <p>Here comes paragraph within content block. Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
    <f7-block-footer>Block Footer</f7-block-footer>
  </f7-block>

  <f7-block-header>Block Header</f7-block-header>
  <f7-block>
    <p>Here comes paragraph within content block. Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  </f7-block>
  <f7-block-footer>Block Footer</f7-block-footer>

  <f7-block strong>
    <f7-block-header>Block Header</f7-block-header>
    <p>Here comes paragraph within content block. Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
    <f7-block-footer>Block Footer</f7-block-footer>
  </f7-block>

  <f7-block-header>Block Header</f7-block-header>
  <f7-block strong>
    <p>Here comes paragraph within content block. Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  </f7-block>
  <f7-block-footer>Block Footer</f7-block-footer>

  <f7-block-title large>Block Title Large</f7-block-title>
  <f7-block strong>
    <p>Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  </f7-block>

  <f7-block-title medium>Block Title Medium</f7-block-title>
  <f7-block strong>
    <p>Donec et nulla auctor massa pharetra adipiscing ut sit amet sem. Suspendisse molestie velit vitae mattis tincidunt. Ut sit amet quam mollis, vulputate turpis vel, sagittis felis. </p>
  </f7-block>
</f7-page>