Introduction
Checklist when developing
- SELECT
Article Templatewhen runningyarn bootstrap.
- WRAP article inside
Articleelement. - KEEP the container margin or width.
- DO NOT style drop caps or block quotes with css. Only use the styleable element's props.
- REPLACE the article content with our provided foo article content.
<template>
<ArticleBlock>
<Header class="mb-8">
<HeadlineImage class="w-full h-96" />
<div class="mx-auto w-96">
<Title :fontSize="32" />
<Description />
</div>
</Header>
<Content class="mx-auto w-96">
<!-- Below is the content of demo article, you should not add or remove any element below -->
<Paragraph :order="0" />
<Header1 :fontSize="28" underline />
<Paragraph :order="1" />
<Blockquote />
<Paragraph :order="2" />
<Header2 :fontSize="24" />
<Paragraph :order="3" />
</Content>
</ArticleBlock>
</template>
<script>
import { Template } from '@storipress/article'
export default Template.extend({})
</script>
- You will see the above template after you run
yarn bootstrapand choseArticle Template. - You can't add or remove any elements inside
Content, and you may need to style the element insideContentwith props. - If you need to style them with css, see
Default styles for H1/H2/Paragraph in article contentbelow.