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
Prop | Type | Default | Description |
---|---|---|---|
<f7-block> properties | |||
inset | boolean | Makes block inset | |
tablet-inset | boolean | Makes block inset on tablets, but not on phones | |
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 | |
<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 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>
当前内容版权归 Framework7 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Framework7 .