@schibstedspain/sui-section-basic

2.5.0 • Public • Published

SectionBasic

Just a basic section container wrapped in a <section> HTML tag, with customisable margin-bottom between its inner elements and the possibility to add an


separator.

Installation

$ npm install @schibstedspain/sui-section-basic --save

Usage

Basic usage

import SectionBasic, {sectionBasicBottomSpacing} from '@s-ui/react-atom-panel'

return (
  <div>
    <SectionBasic
      title='Title of the section'
      separator
      sectionBottomSpacing={sectionBasicBottomSpacing.GIANT}
      headerBottomSpacing={sectionBasicBottomSpacing.XLARGE}
      contentBottomSpacing={sectionBasicBottomSpacing.MEDIUM}>
      <p>This section has a title</p>
      <p>There is a line separator displayed at the bottom of this section as an hr element.</p>
      <p>The margin-bottom of header, content and full section component have been customised.</p>
    </SectionBasic>
    <SectionBasic
      textContent='This section has no title, only text content and default vertical spacing.'
    />
  </div>
)

Find full description and more examples in the demo page.

Readme

Keywords

none

Package Sidebar

Install

npm i @schibstedspain/sui-section-basic

Weekly Downloads

1

Version

2.5.0

License

MIT

Unpacked Size

13.5 kB

Total Files

11

Last publish

Collaborators

  • schibstedspain