2.5.0 • Published 4 years ago

@schibstedspain/sui-section-basic v2.5.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 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 @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.

2.5.0

4 years ago

2.4.0

4 years ago

2.3.0

5 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago