2.9.0 • Published 2 years ago

@s-ui/react-section-basic v2.9.0

Weekly downloads
87
License
MIT
Repository
-
Last release
2 years ago

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 @s-ui/react-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.

2.9.0

2 years ago

2.8.0

3 years ago

2.7.0

4 years ago

2.6.0

4 years ago