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 elementf7-block-title
- block title. Can be used before Block or List Viewf7-block-header
- extra header element. Can be used both inside and outside of block elementsf7-block-footer
- extra footer element. Can be used both inside and outside of block elements
Block Properties
Prop | Type | Default | Description |
---|---|---|---|
<f7-block> properties | |||
inset | boolean | Makes block inset | |
xsmall-inset | boolean | Makes block inset when app width >= 480px | |
small-inset | boolean | Makes block inset when app width >= 568px | |
medium-inset | boolean | Makes block inset when app width >= 768px | |
large-inset | boolean | Makes block inset when app width >= 1024px | |
xlarge-inset | boolean | Makes block inset when app width >= 1200px | |
strong | boolean | Adds extra highlighting and padding block content | |
accordion-list | boolean | Makes block wrapper for accordion items | |
tabs | boolean | Adds additional "tabs" class to make the block tabs wrapper | |
tab | boolean | Adds additional "tab" class when block should be used as a Tab | |
tab-active | boolean | Adds additional "tab-active" class when block used as a Tab and makes it active tab | |
no-hairlines | boolean | Removes outer hairlines | |
no-hairlines-md | boolean | Removes outer hairlines for MD theme | |
no-hairlines-ios | boolean | Removes outer hairlines for iOS theme | |
no-hairlines-aurora | boolean | Removes outer hairlines for Aurora theme | |
<f7-block-title> properties | |||
medium | boolean | Makes block title medium size | |
large | boolean | Makes 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 medium-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>