Skip to content

SContent

<SContent> applies basic styles to the native HTML elements.

@globalbrain/sefirot/lib/components/SContent.vue

Title of the section

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

  • Excepteur sint occaecat cupidatat.
  • Voluptate velit esse cillum dolore.
  • Labore et dolore magna aliqua.

Import

ts
import SContent from '@globalbrain/sefirot/lib/components/SContent.vue'

Usage

Place HTML elements inside <SContent> component and it will apply basic styles to the element, including spacing between elements.

template
<template>
  <SContent>
    <h2>Title of the section</h2>
    <p>Lorem ipsum dolor sit amet.</p>
    <p>Consectetur adipiscing elit.</p>
    <ul>
      <li>Excepteur sint occaecat cupidatat.</li>
      <li>Voluptate velit esse cillum dolore.</li>
      <li>Labore et dolore magna aliqua.</li>
    </ul>
  </SContent>
</template>

The supported elements are:

  • <h1> 3.11.0
  • <h2> 3.11.0
  • <p>
  • <strong>
  • <a>
  • <ul>
  • <ol>
  • <li>

Use CSS class to style the headings

You may use css class either h1 or h2 to apply the styles to the element.

template
<SContent>
  <p class="h1">Title text</p>
</SContent>