@schibstedspain/sui-section-basic
v2.5.0
Published
> 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 <hr> separator.
Downloads
17
Readme
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.