Wrappers

Storipress requires you to wrap your block UI within two wrappers. These wrappers tell Storipress how to dynamically insert articles.

<Block>

All blocks must be wrapped inside this component. Your block must accept a block prop and pass it to the Block component.
<template>
  <Block :block="block">
    <!-- content... -->
  </Block>
</template>
PropsTypeMandatory?Description
blockobjectfont size (valid range: 8 ~ 280)
backgroundColorstringThe color hex code without the # prefix. It also supports object form for responsive config
fullbooleanWhen full is true, the block component will not to add .spacing and block will be full width
slotsDescription
DefaultThe block content

<DeskSection>

<template>
  <Block :block="block">
    <DeskSection :order="0" v-slot="{ desk }">
      <!-- content... -->
    </DeskSection>
  </Block>
</template>
Wrap a block's desk sections in this wrapper
PropsTypeMandatory?
Ordernumber
Please make order increase as follow order showed visually
  1. left to right
  2. top to down

Slots

  • Default

    The desk content; e.g.

    interface { /// Desk name desk: string }

Edit this page on GitHub Updated at Sun, Nov 20, 2022